摘要: Problem DescriptionToday is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatius wants to know how many tables he needs at ... 阅读全文
posted @ 2014-07-27 17:53 Iridescent_zzy 阅读(133) 评论(0) 推荐(0)
摘要: 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 16:58 Iridescent_zzy 阅读(350) 评论(0) 推荐(0)
摘要: Problem DescriptionThere is a town with N citizens. It is known that some pairs of people are friends. According to the famous saying that “The friend... 阅读全文
posted @ 2014-07-27 15:46 Iridescent_zzy 阅读(119) 评论(0) 推荐(0)
摘要: Problem 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 wa... 阅读全文
posted @ 2014-07-27 15:30 Iridescent_zzy 阅读(254) 评论(0) 推荐(0)
摘要: DescriptionBeing a programmer, you like arrays a lot. For your birthday, your friends have given you an arrayaconsisting ofndistinctintegers.Unfortuna... 阅读全文
posted @ 2014-07-27 15:24 Iridescent_zzy 阅读(330) 评论(0) 推荐(0)
摘要: DescriptionAfter winning gold and silver in IOI 2014, Akshat and Malvika want to have some fun. Now they are playing a game on a grid made ofnhorizont... 阅读全文
posted @ 2014-07-27 15:16 Iridescent_zzy 阅读(372) 评论(0) 推荐(0)