Description
The funny stone game is coming. There are n piles of stones, numbered with
0, 1, 2,..., n - 1. Two persons pick stones in turn. In every turn, each person selects three piles of stones...
分类:
其他好文 时间:
2014-08-28 16:15:29
阅读次数:
523
注意!这不是单纯的字典序排序,比如90、9,应该是990最大对字符串排序蛋疼了好久,因为别人说string很慢,所以一直没有用过。看别人用string还是比较方便的,学习一下对了,这里的cmp函数写的还是很简洁的,比我写的要好得多 1 #define LOCAL 2 #include 3 #inc....
分类:
其他好文 时间:
2014-08-28 12:53:09
阅读次数:
225
Description
Box Game
There are two identical boxes. One of them contains n balls, while the other box contains one ball. Alice and Bob invented a game with the boxes and bal...
分类:
其他好文 时间:
2014-08-28 09:41:09
阅读次数:
189
题目:
Jump Game I:
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that...
分类:
其他好文 时间:
2014-08-28 02:07:48
阅读次数:
249
巴什博奕(Bash Game):只有一堆n个物品,两个人轮流从这堆物品中取物,规定每次至少取一个,最多取m个。最后取光者得胜。...
分类:
其他好文 时间:
2014-08-28 00:58:38
阅读次数:
243
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:
其他好文 时间:
2014-08-28 00:47:28
阅读次数:
263
Stone Game
Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)
Total Submission(s): 2539 Accepted Submission(s): 741
Problem Description
This game is a two-p...
分类:
其他好文 时间:
2014-08-27 22:03:38
阅读次数:
244
题目:hdoj 3657 Game
分类:
题意:给出一个矩阵,里面有值,要求按规则取一定的数使得得分最大,规则如下:
1:规定一些格子必须要拿,得分为拿了的格子的值得和
2:拿相邻的格子的需减去所有2*(x | y)
分析:这是一个标准的求最小割的题目,做这个题目推荐先做一下hdoj 1659,讲解:点击打开链接
同样是格子类题目,限制为相邻的,那么我们可以按...
分类:
其他好文 时间:
2014-08-27 20:37:38
阅读次数:
313
Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Your goal i...
分类:
其他好文 时间:
2014-08-27 18:45:28
阅读次数:
228
Beans GameTime Limit: 5 Seconds Memory Limit: 32768 KBThere are three piles of beans. TT and DD pick any number of beans from any pile or the same num...
分类:
其他好文 时间:
2014-08-27 18:32:48
阅读次数:
150