摘要:
Problem Description Rikka and Yuta are interested in Phi function (which is known as Euler's totient function).Yuta gives Rikka an array A[1..n] of po 阅读全文
摘要:
Problem Description Recently in Teddy's hometown there is a competition named "Cow Year Blow Cow".N competitors had took part in this competition.The 阅读全文
摘要:
Problem Description A murder happened in the hotel. As the best detective in the town, you should examine all the N rooms of the hotel immediately. Ho 阅读全文
摘要:
Description A lattice point (x, y) in the first quadrant (x and y are integers greater than or equal to 0), other than the origin, is visible from the 阅读全文
摘要:
Problem Description Sample Input 2 2 Sample Output 2 Hint 1. For N = 2, S(1) = S(2) = 1. 2. The input file consists of multiple test cases. 2 Hint 1. 阅读全文
摘要:
Problem Description Emily the entrepreneur has a cool business idea: packaging and selling snowflakes. She has devised a machine that captures snowfla 阅读全文
摘要:
A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacen 阅读全文