码迷,mamicode.com
首页 >  
搜索关键字:each    ( 14050个结果
codechef Chef and The Right Triangles 题解
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
LeetCode——Triangle
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广搜深搜
/* 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
[ACM] POJ 1218 THE DRUNK JAILER (关灯问题)
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
HDU1312——Red and Black
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置空,即将选中的checkbox不选中。最后,发现一个方法很好使,特此记录。 $("input[type='checkbox']").each(function(){    if(this.checked){        this.checked=false;       }   }); 原理:循环每一个type为chec...
分类:其他好文   时间:2014-07-12 22:07:43    阅读次数:266
POJ 1422:Air Raid(最大独立集)
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
Java Word Ladder(字梯)
问题: 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
POJ-1785-Binary Search Heap Construction(笛卡尔树)
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
HDU 1016 Prime Ring Problem 题解
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!