摘要: DescriptionNim is a 2-player game featuring several piles of stones. Players alternate turns, and on his/her turn, a player’s move consists of removin... 阅读全文
posted @ 2015-07-15 20:49 竹夭公子 阅读(201) 评论(0) 推荐(0) 编辑
摘要: DescriptionAlice and Bob decide to play a new stone game.At the beginning of the game they pick n(1#include#includeusing namespace std;int n,a[11];int... 阅读全文
posted @ 2015-07-15 20:36 竹夭公子 阅读(571) 评论(0) 推荐(0) 编辑
摘要: 以下内容转自精灵的博客。时间限制: 1000ms 内存限制: 65536kB描述 Here is a simple game. In this game, there are several piles of matches and two players. The two player pla... 阅读全文
posted @ 2015-07-15 20:27 竹夭公子 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 描述Matrix67和Shadow正在做一个小游戏。桌子上放着两堆糖果,Matrix67和Shadow轮流对这些糖果进行操作。在每一次操作中,操作者需要吃掉其中一堆糖果,并且把另一堆糖果分成两堆(可以不相等)留给对方操作。游戏如此进行下去,糖果数会越来越少,最后必将出现这样一种情况:某人吃掉一堆糖果... 阅读全文
posted @ 2015-07-15 17:24 竹夭公子 阅读(685) 评论(0) 推荐(0) 编辑
摘要: Description现在请求你维护一个数列,要求提供以下两种操作: 1、 查询操作。语法:Q L 功能:查询当前数列中末尾L个数中的最大的数,并输出这个数的值。限制:L不超过当前数列的长度。 2、 插入操作。语法:A n 功能:将n加上t,其中t是最近一次查询操作的答案(如果还未执行过查询操作,则... 阅读全文
posted @ 2015-07-15 15:07 竹夭公子 阅读(181) 评论(0) 推荐(0) 编辑
摘要: DescriptionInputOutput输出文件包括n 行,每行一个实数,精确到小数点后3 位。第i 行的实数表 示结点i 在社交网络中的重要程度。Sample Input4 41 2 12 3 13 4 14 1 1Sample Output1.0001.0001.0001.000HINT为1... 阅读全文
posted @ 2015-07-15 10:36 竹夭公子 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 题目描述输入只有一行一个整数 N(0 int n,s; int main() { scanf("%d",&n); for (int i=1;i<=n;i++) s+=n/i; printf("%d",s); } 阅读全文
posted @ 2015-07-15 09:23 竹夭公子 阅读(126) 评论(0) 推荐(0) 编辑