UVa 12525 Boxes and Stones (dp 博弈)...
分类:
其他好文 时间:
2015-08-10 02:00:00
阅读次数:
153
It is spring time and farmers have to plant seeds in the field. Tom has a nice field, which is a rectangle with n * m squares. There are big stones in some of the squares.
Tom has a seeding-machine. ...
分类:
其他好文 时间:
2015-08-04 17:19:53
阅读次数:
77
BearPlaysDiv2Problem StatementLimak is a little bear who loves to play. Today he is playing by moving some stones between three piles of stones. Initi...
分类:
其他好文 时间:
2015-08-02 06:21:20
阅读次数:
141
Doraemon's Stone Game
Time Limit: 2 Seconds Memory Limit: 65536 KB
Doraemon is playing a game with Dorami. Initially there are piles of stones on the table. Each pile consists of at most ...
分类:
其他好文 时间:
2015-07-29 17:11:36
阅读次数:
97
StonesTime Limit: 5000/3000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1373Accepted Submission(s): 858Problem Descr...
分类:
其他好文 时间:
2015-07-28 20:30:25
阅读次数:
103
Problem Description
Because of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk back every evening. Walking may cause a little tired, so Sempr always play some...
分类:
其他好文 时间:
2015-07-28 18:47:22
阅读次数:
112
StonesTime Limit: 5000/3000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1363Accepted Submission(s): 850Problem Descr...
分类:
其他好文 时间:
2015-07-28 12:42:46
阅读次数:
92
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...
分类:
其他好文 时间:
2015-07-15 22:32:52
阅读次数:
132
1180. Stone Game
Time limit: 1.0 second
Memory limit: 64 MB
Two Nikifors play a funny game. There is a heap of
N stones in front of them. Both Nikifors in turns take some stones from the hea...
分类:
其他好文 时间:
2015-06-23 18:02:36
阅读次数:
108
题意给出一个n个数的序列。下面有m个指令
1指令:原序列从l到r的和
2指令:排序过的序列从l到r的和思路线段树可做….直接扫一遍记录sum数组也可以代码#include
#include
#include
using namespace std;
#define ll long long
const int maxn = 10001...
分类:
其他好文 时间:
2015-06-13 12:57:24
阅读次数:
112