题目链接: http://acm.split.hdu.edu.cn/showproblem.php?pid=4994 Description Nim is a mathematical game of strategy in which two players take turns removing ...
分类:
其他好文 时间:
2016-08-22 18:18:18
阅读次数:
225
Hopscotch Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Submit Status Practice POJ 3050 Description The cows play the child's gam ...
分类:
其他好文 时间:
2016-08-18 00:48:31
阅读次数:
179
Problem Description Nim is a mathematical game of strategy in which two players take turns removing objects from distinct heaps. On each turn, a playe ...
分类:
其他好文 时间:
2016-08-17 00:04:35
阅读次数:
199
libxl for ios Created by LibXL trial version. Please buy the LibXL full version for removing this message. 上面的提示 需要购买199美元的framework 这样就能去掉第一行不能写入以及只能 ...
分类:
移动开发 时间:
2016-08-12 15:02:04
阅读次数:
951
给定一个序列,只能拿走D,隔壁的会翻转,问能否全部拿走。 注意到如果能拿走的话,拿D的顺序是没关系的。模拟即可 #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <algorithm> ...
分类:
其他好文 时间:
2016-08-12 00:50:57
阅读次数:
176
题目:传送门。 题意:长度为N的格子,Alice和Bob各占了最左边以及最右边K个格子,每回合每人可以选择一个棋子往对面最近的一个空格移动。最先不能移动的人获得胜利。 题解: k=1时 很容易看出,n为奇数则后手获胜,n为偶数则先手获胜 k>1时 如果n=2*k+1,则棋 盘中只有一个空白的格子,每 ...
分类:
其他好文 时间:
2016-08-11 20:54:29
阅读次数:
122
Description Ponyo and Garfield are waiting outside the box-office for their favorite movie. Because queuing is so boring, that they want to play a gam ...
分类:
其他好文 时间:
2016-08-07 19:57:19
阅读次数:
194
installation: searching.. update db & upgrade.. install dependencies.. remove single pkg.. remove pkg and its deps.. remove pkg without removing the p ...
分类:
系统相关 时间:
2016-07-31 12:53:33
阅读次数:
185
Adding and Removing HTML Elements Dynamically adding elements to our HTML page is a powerful tool—it lets us modify not only the formatting, but the a ...
分类:
Web程序 时间:
2016-07-30 15:00:45
阅读次数:
167
Description Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to vis ...
分类:
其他好文 时间:
2016-07-29 21:23:48
阅读次数:
209