上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页
摘要: 题目描述 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)
摘要: 题目描述 Consider the number triangle shown below. Write a program that calculates the highest sum of numbers that can be passed on a route that starts at 阅读全文
posted @ 2018-07-17 17:54 RhythmLian 阅读(218) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 14 下一页