- 博客(10)
- 收藏
- 关注
原创 小花梨的取石子游戏
链接:传送门 单点时限: 1.0 sec 内存限制: 512 MB Description 小花梨有n堆石子,第i堆石子数量为ai,n堆石子顺时针编号为1−n(如图)。 游戏将进行n轮,每轮游戏单独进行,互不干扰,每轮初始时第i堆石子数目为ai。第i轮从编号为i的那堆石子为起点,顺时针来取石子。两人轮流取石子,不可不取,最少取一个石子,最多把当前这一堆取完,只有取完一堆后才走到下一堆石子...
2019-05-27 09:02:02
168
原创 Permutation
链接:http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=2321 标题:permunation 题目描述: n个人排成一队,队头的人编号为1,后面的人编号分别为2,3,…,n.1号人前面没有人,i号人的前面是i-1。现在Kim想让这n个人重新排队,要求重新排队后编号为i的人前面...
2019-04-25 18:31:39
184
原创 Rochambeau
链接:http://poj.org/problem?id=2912 标题:Rochambeau Description N children are playing Rochambeau (scissors-rock-cloth) game with you. One of them is the judge. The rest children are divided into three...
2019-04-10 19:56:26
201
原创 N!
链接:https://cn.vjudge.net/problem/HDU-1042 题目:N! Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N! Input One N in one line, process to the end of file. Output For each N, output ...
2019-04-09 19:54:52
275
原创 The Tag Game
链接 http://codeforces.com/problemset/problem/813/C 题目:The Tag Game Alice got tired of playing the tag game by the usual rules so she offered Bob a little modification to it. Now the game shou...
2019-04-08 19:47:16
178
原创 Students in Railway Carriage
链接:http://codeforces.com/problemset/problem/962/B B. Students in Railway Carriage time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output...
2019-04-06 14:43:40
204
原创 The Useless Toy
http://codeforces.com/problemset/problem/834/A # 题目:The Useless Toy Walking through the streets of Marshmallow City, Slastyona have spotted some merchants selling a kind of useless toy which is ver...
2019-04-05 14:14:41
180
原创 Petya and Exam
http://codeforces.com/problemset/problem/832/B 标题:Petya and Exam It's hard times now. Today Petya needs to score 100 points on Informatics exam. The tasks seem easy to Petya, but he thinks he lacks...
2019-04-05 10:57:20
296
原创 非主流
非主流 ( https://cn.vjudge.net/contest/292206#problem/B) 非主流指不属于主流的事物,如文化上的次文化,宗教上的异端,人群中的异类等。非主流是相对于主流而存在概念。一个事物既可以从非主流变成主流,也可以从主流变为非主流。因此,...
2019-04-04 15:48:42
185
原创 分糖果
https://cn.vjudge.net/contest/291737#problem/G 分糖果 万圣节到了,杰哥准备给班级里的同学发糖吃,男生女生各一堆。于是他去腐败街的xx小卖部买糖,他认为糖只要是独一无二的那他就是好糖,他跟老板说他想要买n个不一样的糖,但是老板是个黑心商贩,当杰...
2019-04-04 14:22:16
493
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅