摘要: Given a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let’s say the phone catalogue liste 阅读全文
posted @ 2017-08-02 13:49 whileskies 阅读(181) 评论(0) 推荐(0) 编辑
摘要: For each prefix with length P of a given string S,if S[i]=S[i+P] for i in [0..SIZE(S)-p-1], then the prefix is a “period” of S. We want to all the per 阅读全文
posted @ 2017-07-31 19:27 whileskies 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Description N children are sitting in a circle to play a game. The children are numbered from 1 to N in clockwise order. Each of them has a card with 阅读全文
posted @ 2017-07-29 19:40 whileskies 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Description It is well known that a human gene can be considered as a sequence, consisting of four nucleotides, which are simply denoted by four lette 阅读全文
posted @ 2017-07-27 20:22 whileskies 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Description In the army, a platoon is composed by n soldiers. During the morning inspection, the soldiers are aligned in a straight line in front of t 阅读全文
posted @ 2017-07-27 10:08 whileskies 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Description Few know that the cows have their own dictionary with W (1 ≤ W ≤ 600) words, each containing no more 25 of the characters 'a'..'z'. Their 阅读全文
posted @ 2017-07-26 21:28 whileskies 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Description A Bank plans to install a machine for cash withdrawal. The machine is able to deliver appropriate @ bills for a requested cash amount. The 阅读全文
posted @ 2017-07-26 18:03 whileskies 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Description Gigel has a strange "balance" and he wants to poise it. Actually, the device is different from any other ordinary balance. It orders two a 阅读全文
posted @ 2017-07-26 14:44 whileskies 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 45941 Accepted: 15637 Description Background The knight is getting bored of seeing the same 阅读全文
posted @ 2017-07-25 20:24 whileskies 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Description The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the fou 阅读全文
posted @ 2017-07-25 11:16 whileskies 阅读(197) 评论(0) 推荐(0) 编辑