1876. Centipede's MorningTime limit: 0.5 secondMemory limit: 64 MBA centipede has 40 left feet and 40 right feet. It keeps a left slippers and b right...
分类:
其他好文 时间:
2014-07-19 15:10:30
阅读次数:
233
1877. Bicycle CodesTime limit: 0.5 secondMemory limit: 64 MBDen has two four-digit combination locks for protecting his bicycle from thieves. Every ev...
分类:
其他好文 时间:
2014-07-19 15:02:20
阅读次数:
313
Your little brother has just learnt to write one, two and three, in English. He has written a lot of those words in a paper, your task is to recognize...
分类:
其他好文 时间:
2014-07-19 11:30:29
阅读次数:
225
columns, each representing a street or a piece of wall.A blockhouse is a small castle that has four openings through which to shoot. The four openings...
分类:
Web程序 时间:
2014-07-19 11:28:06
阅读次数:
281
Your little brother has just learnt to write one, two and three, in English. He has written a lot of those words in a paper, your task is to recognize...
分类:
其他好文 时间:
2014-07-19 09:31:41
阅读次数:
238
Y2K Accounting Bug
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 10117
Accepted: 5043
Description
Accounting for Computer Machinists (ACM) has sufferred fr...
分类:
其他好文 时间:
2014-07-19 08:11:11
阅读次数:
197
Description
Problem E
Eat or not to Eat?
Input: Standard Input
Output: Standard Output
A young farmer has N cows, but they produced really really a very very small amount of milk. John ca...
分类:
其他好文 时间:
2014-07-19 08:09:15
阅读次数:
296
Labeling Balls
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 10178
Accepted: 2815
Description
Windy has N balls of distinct weights from 1 un...
分类:
其他好文 时间:
2014-07-19 02:26:55
阅读次数:
224
A simple 1D searching problem. Binary search of course.But.. STL has already done it for you:class Solution {public: int searchInsert(int A[], int ...
分类:
其他好文 时间:
2014-07-18 18:35:41
阅读次数:
205
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2014-07-18 18:28:44
阅读次数:
231