摘要:对称博弈 Coin Game (HDU - 3951) After hh has learned how to play Nim game, he begins to try another coin game which seems much easier. The game goes like
阅读全文
摘要:Harmonic Value Description HDU - 5916 Harmonic Value Description The harmonic value of the permutation p1,p2,⋯pn is ∑i=1n−1gcd(pi.pi+1) Mr. Frog is wo
阅读全文
摘要:Ultra-QuickSort OpenJ_Bailian - 2299 In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n dist
阅读全文
摘要:Euclid's Game HDU - 1525 Two players, Stan and Ollie, play, starting with two natural numbers. Stan, the first player, subtracts any positive multiple
阅读全文
摘要:Bear and Blocks CodeForces - 574D Limak is a little bear who loves to play. Today he is playing by destroying block towers. He built n towers in a row
阅读全文
摘要:Maximum splitting CodeForces - 872C You are given several queries. In the i-th query you are given a single positive integer ni. You are to represent
阅读全文
摘要:Bone Collector II HDU - 2639 The title of this problem is familiar,isn't it?yeah,if you had took part in the "Rookie Cup" competition,you must have se
阅读全文
摘要:Taxes CodeForces - 735D Mr. Funt now lives in a country with a very specific tax laws. The total income of mr. Funt during this year is equal to n (n
阅读全文
摘要:Lucky Queries CodeForces - 145E Petya loves lucky numbers very much. Everybody knows that lucky numbers are positive integers whose decimal record con
阅读全文
摘要:Traffic Jams in the Land CodeForces - 498D Some country consists of (n + 1) cities, located along a straight highway. Let's number the cities with con
阅读全文