题目大意: 给你一个由“#” 、“.”、“S”、“E” .构成的图,
“#”代表墙不可穿越,“.”代表空白,“S”代表起点,“E”代表重点,问你分别沿着左边走和右边走和最短路径各多少步。
即使这样说,题目还是不太明确,题意还是看不懂,下面简单介绍下具体的走法。 拿第一组测试数据为例子: ###...
分类:
其他好文 时间:
2014-06-02 09:20:12
阅读次数:
599
Children of the Candy CornTime Limit:
1000MSMemory Limit: 65536KTotal Submissions: 9114Accepted: 3959DescriptionThe
cornfield maze is a popular Hallow...
分类:
其他好文 时间:
2014-06-01 12:33:11
阅读次数:
213
There areNchildren standing in a line. Each
child is assigned a rating value.You are giving candies to these children
subjected to the following requi...
分类:
其他好文 时间:
2014-05-30 15:04:58
阅读次数:
224
1 function shengchen() { 2 var arrTR =
$("#tbModule").children(); 3 var Context=""; 4 $("#tbModule").find("tr")...
分类:
Web程序 时间:
2014-05-26 12:41:49
阅读次数:
399
jQuery提供了很多方法来获取一个元素的direct descendant(直接后代)。
最简单的方式是使用direct descendant combinator (>)
例如,如果要获取如下html代码中的直接孩子节点中的a元素,就可以直接使用
> 符号
jQuery
jQuery tutorial
使用selector获取
$('content > a');...
分类:
Web程序 时间:
2014-05-24 19:56:18
阅读次数:
364
<html><metacharset="utf-8"><?php //xmldom操作xml文件 $xmlDoc=newDOMDocument();//创建xmldom对象 $xmlDoc->load("data.xml");//加载xml数据 $items=$xmlDoc->documentElement; //得到所有的节点元素 foreach($items->childNodesas$item){ //遍..
分类:
Web程序 时间:
2014-05-24 16:51:51
阅读次数:
292
向上遍历DOM树:.parent().parents().parentsUntil()向下遍历DOM树:.children().find()DOM树水平遍历:.siblings().next().nextAll().nextUntil().prev().prevAll().preUntil()三个最...
分类:
Web程序 时间:
2014-05-23 07:05:00
阅读次数:
286
There are N children standing in a line. Each child is assigned a rating value.
You are giving candies to these children subjected to the following requirements:
Each child must have at least one candy.
Children with a higher rating get more candies than...
分类:
其他好文 时间:
2014-05-22 11:00:49
阅读次数:
285
题目描述Halloween is coming! So xiaoY has to prepare M
candies to treat the neighbor kids.When this horrible night come, There are N
little children ask x...
分类:
其他好文 时间:
2014-05-19 22:40:32
阅读次数:
412
题目链接:POJ 3083 Children of the Candy
Corn【题意】给出一个迷宫,不超过40*40,‘#’代表墙,‘.’代表能走,‘S’是起点,‘E’是终点。分别求出从起点一直沿左走,一直沿右走,走到终点所需要的步数。以及走出迷宫的最小步数。【思路】首先最小步数很简单,一个普通B...
分类:
其他好文 时间:
2014-05-19 10:03:59
阅读次数:
312