Chef and The Right TrianglesThe Chef is given a list ofN triangles. Each triangle is identfied by the coordinates of its three corners in the 2-D cart...
分类:
其他好文 时间:
2014-07-14 00:51:29
阅读次数:
198
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[3,4],
[...
分类:
其他好文 时间:
2014-07-13 16:01:42
阅读次数:
209
/*
B - 广搜/深搜 基础
Time Limit:1000MS Memory Limit:30000KB 64bit IO Format:%I64d & %I64u
Submit
Status
Description
There is a rectangular room, covered with square tiles. Each tile is colored ei...
分类:
其他好文 时间:
2014-07-13 14:08:05
阅读次数:
237
THE DRUNK JAILER
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 23246
Accepted: 14641
Description
A certain prison contains a long hall of n cells, each rig...
分类:
其他好文 时间:
2014-07-13 13:46:41
阅读次数:
265
Red and BlackProblem DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on...
分类:
其他好文 时间:
2014-07-13 13:10:07
阅读次数:
220
今天在做项目的时候,遇到一个问题。需要把选中的checkbox置空,即将选中的checkbox不选中。最后,发现一个方法很好使,特此记录。
$("input[type='checkbox']").each(function(){
if(this.checked){
this.checked=false;
}
});
原理:循环每一个type为chec...
分类:
其他好文 时间:
2014-07-12 22:07:43
阅读次数:
266
Air Raid
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 6547
Accepted: 3896
Description
Consider a town where all the streets are one-way and each stree...
分类:
其他好文 时间:
2014-07-12 21:04:44
阅读次数:
232
问题:
Given two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end, such that:
Only one letter can be changed at a time
Each intermediate wo...
分类:
编程语言 时间:
2014-07-12 19:21:38
阅读次数:
290
Description
Read the statement of problem G for the definitions concerning trees. In the following we define the basic terminology of heaps. A heap is a tree whose internal nodes have each assigned...
分类:
其他好文 时间:
2014-07-12 18:52:12
阅读次数:
285
Problem Description
A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent circles should be a prime...
分类:
其他好文 时间:
2014-07-12 16:42:15
阅读次数:
271