摘要: DescriptionYou've decided to carry out a survey in the theory of prime numbers. Let us remind you that a prime number is a positive integer that has e... 阅读全文
posted @ 2014-07-27 17:43 Run_dream 阅读(184) 评论(0) 推荐(0) 编辑
摘要: DescriptionFor each prefix with length P of a given string S,ifS[i]=S[i+P] for i in [0..SIZE(S)-p-1],then the prefix is a “period” of S. We want to al... 阅读全文
posted @ 2014-07-27 17:16 Run_dream 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Problem IFRIENDSThere is a town with N citizens. It is known that some pairs of people are friends. According to the famous saying that “The friends o... 阅读全文
posted @ 2014-07-27 16:18 Run_dream 阅读(264) 评论(0) 推荐(0) 编辑