题目描述:
A number of students sit in a circle facing their teacher in the center. Each student initially has an even number of pieces of candy. When the teacher blows a whistle, each student simult...
分类:
其他好文 时间:
2015-04-13 19:01:10
阅读次数:
134
Cylinder CandyTime Limit:2 Seconds Memory Limit:65536 KB Special JudgeEdward the confectioner is making a new batch of chocolate covered candy. Each c...
分类:
其他好文 时间:
2015-04-13 18:08:28
阅读次数:
287
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5478
题面:
Cylinder Candy
Time Limit: 2 Seconds Memory Limit: 65536 KB Special Judge
Edward the confectioner is ...
分类:
其他好文 时间:
2015-04-13 09:36:42
阅读次数:
150
Cylinder CandyTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeEdward the confectioner is making a new batch of chocolate covered candy. Each...
分类:
其他好文 时间:
2015-04-13 00:22:42
阅读次数:
129
Cylinder CandyTime Limit:2 Seconds Memory Limit:65536 KB Special JudgeEdward the confectioner is making a new batch of chocolate covered candy. Each c...
分类:
其他好文 时间:
2015-04-12 20:54:27
阅读次数:
207
感觉和Container With Most Water很像,这里有个问题,如果让球最大的坑,怎么做呢?还有candy那道题,好像都是这种双扫系列的refhttp://fisherlei.blogspot.com/2013/01/leetcode-trapping-rain-water.html双扫...
分类:
移动开发 时间:
2015-04-10 13:00:09
阅读次数:
153
数学+暴力 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include10 #include11 #include12 #include13 #include14...
分类:
其他好文 时间:
2015-04-02 14:38:46
阅读次数:
124
https://leetcode.com/problems/candy/There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these child...
分类:
其他好文 时间:
2015-03-20 21:38:33
阅读次数:
148
链接:click here
//题意:一组数分成两堆,如果能使两堆数的异或值相等,则满足条件,
//输出和大的一组的和,题目要求使和最大。如果不能输出NO。
//我们知道,两个相等的数和为0,所以对所有进行异或,为0则满足条件,总和减去最小的即为所求的值。
#include
#include
#include
#include
#include
#include
#incl...
分类:
其他好文 时间:
2015-03-16 23:16:55
阅读次数:
423
POJ 3083 dfs+bfs+模拟Children of the Candy CornTime Limit:1000MSMemory Limit:65536KTotal Submissions:10564Accepted:4539DescriptionThe cornfield maze is....
分类:
其他好文 时间:
2015-03-12 00:41:04
阅读次数:
123