摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文