摘要:
题目描述 Given two integers n and m, count the number of pairs of integers (a,b) such that 0 < a < b < n and (a^2+b^2 +m)/(ab) is an integer.This problem 阅读全文
posted @ 2018-07-18 23:53
RhythmLian
阅读(137)
评论(0)
推荐(0)
摘要:
题目描述 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 ad 阅读全文
posted @ 2018-07-18 21:02
RhythmLian
阅读(164)
评论(0)
推荐(0)
摘要:
题目描述 Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes from Ir 阅读全文
posted @ 2018-07-18 20:24
RhythmLian
阅读(144)
评论(0)
推荐(0)
摘要:
题目描述 The harmonic value of the permutation $p_1,p_2,\cdots p_n$ is$$\sum_{i=1}^{n-1} gcd(p_i.p_{i+1})$$Mr. Frog is wondering about the permutation who 阅读全文
posted @ 2018-07-18 20:11
RhythmLian
阅读(173)
评论(0)
推荐(0)
摘要:
有2堆石子。A B两个人轮流拿,A先拿。每次可以从一堆中取任意个或从2堆中取相同数量的石子,但不可不取。拿到最后1颗石子的人获胜。假设A B都非常聪明,拿石子的过程中不会出现失误。给出2堆石子的数量,问最后谁能赢得比赛。 例如:2堆石子分别为3颗和5颗。那么不论A怎样拿,B都有对应的方法拿到最后1颗 阅读全文
posted @ 2018-07-18 19:03
RhythmLian
阅读(175)
评论(0)
推荐(0)
摘要:
有N堆石子。A B两个人轮流拿,A先拿。每次只能从一堆中取若干个,可将一堆全取走,但不可不取,拿到最后1颗石子的人获胜。假设A B都非常聪明,拿石子的过程中不会出现失误。给出N及每堆石子的数量,问最后谁能赢得比赛。 例如:3堆石子,每堆1颗。A拿1颗,B拿1颗,此时还剩1堆,所以A可以拿到最后1颗石 阅读全文
posted @ 2018-07-18 18:57
RhythmLian
阅读(162)
评论(0)
推荐(0)
摘要:
有一堆石子共有N个。A B两个人轮流拿,A先拿。每次最少拿1颗,最多拿K颗,拿到最后1颗石子的人获胜。假设A B都非常聪明,拿石子的过程中不会出现失误。给出N和K,问最后谁能赢得比赛。 例如N = 3,K = 2。无论A如何拿,B都可以拿到最后1颗石子。 有一堆石子共有N个。A B两个人轮流拿,A先 阅读全文
posted @ 2018-07-18 18:52
RhythmLian
阅读(195)
评论(0)
推荐(0)
摘要:
题目描述 To avoid unsightly burns while tanning, each of the C (1 ≤ C ≤ 2500) cows must cover her hide with sunscreen when they're at the beach. Cow i has 阅读全文
posted @ 2018-07-18 18:39
RhythmLian
阅读(500)
评论(0)
推荐(0)
摘要:
题目描述 Is Friday the 13th really an unusual event?That is, does the 13th of the month land on a Friday less often than on any other day of the week? To 阅读全文
posted @ 2018-07-18 00:17
RhythmLian
阅读(195)
评论(0)
推荐(0)
摘要:
题目描述 It is a well-known fact that behind every good comet is a UFO. These UFOs often come to collect loyal supporters from here on Earth. Unfortunatel 阅读全文
posted @ 2018-07-18 00:14
RhythmLian
阅读(264)
评论(0)
推荐(0)
摘要:
题目描述 The Merry Milk Makers company buys milk from farmers, packages it into attractive 1- and 2-Unit bottles, and then sells that milk to grocery stor 阅读全文
posted @ 2018-07-18 00:08
RhythmLian
阅读(215)
评论(0)
推荐(0)

浙公网安备 33010602011771号