被第二个条件给坑了
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 their ne...
分类:
其他好文 时间:
2014-08-23 11:20:30
阅读次数:
173
这道题有深搜和广搜。深搜还有要求,靠左或靠右。下面以靠左为例,可以把简单分为上北,下南,左西,右东四个方向。向东就是横坐标i不变,纵坐标j加1(i与j其实就是下标)。其他方向也可以这样确定。通过上一步方向可以确定下一步应该从哪个方向开始搜。比如说,是向北走的,就必须先搜西,西不可以走,再搜北,如果北...
分类:
其他好文 时间:
2014-08-22 20:57:49
阅读次数:
183
World Wide Web is a vast supply of parts for also.Alexander V. There is also a real travel organization to move their children to a new place. Afforda...
分类:
其他好文 时间:
2014-08-22 12:25:56
阅读次数:
189
Herve Leger dresses sale are positioned to represent its presence unless conditions in the body. Therefore, it is important to hire a good carpet clea...
分类:
其他好文 时间:
2014-08-21 12:50:44
阅读次数:
259
Hotter Colder
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 2523
Accepted: 1045
Description
The children's game Hotter Colder is played as follows. Playe...
分类:
其他好文 时间:
2014-08-20 21:11:12
阅读次数:
378
jq function changeStreet(a){ var valk=$(a).html(); $(a).parents(".select_box").children(".select_choose").children(".hadSelect").text(valk); $(a)...
分类:
其他好文 时间:
2014-08-20 19:30:12
阅读次数:
219
Problem Description
Xiaoji is an OCD (obsessive-compulsive disorder) patient. This morning, his children played with plasticene. They broke the plasticene into N pieces, and put them in a line. Eac...
分类:
其他好文 时间:
2014-08-20 16:23:12
阅读次数:
210
Another OCD PatientProblem DescriptionXiaoji is an OCD (obsessive-compulsive disorder) patient. This morning, his children played with plasticene. The...
分类:
其他好文 时间:
2014-08-19 23:45:55
阅读次数:
259
前三题早就写好了,一直在纠结D
A. Jzzhu and Children
题意:就是简单的模拟,给排成一队的孩子分发糖果,每个孩子有至少要得到的糖果数。
然后每次给队头的孩子分发m个糖果,如果他已经得到了足够的糖果(大于等于他想得到的
最少糖果数)那么他就出队,否则他就去队尾。问最后一个孩子的编号。
算法:队列模拟,水题~
#include
#includ...
分类:
其他好文 时间:
2014-08-19 22:29:25
阅读次数:
333
Description
Every year there is the same problem at Halloween: Each neighbour is only willing to give a certain total number of sweets on that day, no matter how many children call on him, so it ma...
分类:
其他好文 时间:
2014-08-19 22:28:45
阅读次数:
278