题目:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3668题意:给一个初始值为0的长度为n的区间,给m个约束l,r,a,b,表示从l到r的区间和>=a且 17 #include 18 #include 19 #incl.....
分类:
其他好文 时间:
2014-08-26 22:42:26
阅读次数:
298
Description
a program that, given a natural number N between 0 and 4999 (inclusively), and M distinct decimal digits X1,X2..XM (at least one), finds the smallest strictly positive multiple of N that ...
分类:
其他好文 时间:
2014-08-26 21:34:06
阅读次数:
342
题意:
在一个有向无环图上,有若干玩具,每人每次只能将一个玩具移动一步,玩具被移动到终点n将不能再被移动了,最后不能移动者输。
组合博弈
SG函数应用
#include
#include
#include
#include
using namespace std;
const int maxn = 10000 + 100;
int SG[maxn];
vector ...
分类:
其他好文 时间:
2014-08-26 21:32:06
阅读次数:
208
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3674
Search in the Wiki
Time Limit: 2 Seconds Memory Limit: 65536 KB
As we known, Searching in Wiki is an useful w...
分类:
其他好文 时间:
2014-08-26 21:31:36
阅读次数:
395
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3671
Japanese Mahjong III
Time Limit: 2 Seconds Memory Limit: 65536 KB
Mahjong is a game of skill, strategy and ca...
分类:
其他好文 时间:
2014-08-26 21:31:16
阅读次数:
346
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2588
题意:
Ferry王国是一个漂亮的岛国,一共有N个岛国、M座桥,通过这些桥可以从每个小岛都能
到达任何一个小岛。很不幸的是,最近Ferry王国被Jordan征服了。Jordan决定烧毁所有的桥。
这是个残酷的决定,但是Jordan的谋士建议他不要这样...
分类:
其他好文 时间:
2014-08-26 21:28:46
阅读次数:
286
Treasure Hunt IITime Limit: 2 Seconds Memory Limit: 65536 KBThere are n cities(1, 2, ... ,n) forming a line on the wonderland. city i and city i+1 ...
分类:
其他好文 时间:
2014-08-26 21:26:16
阅读次数:
531
MachineTime Limit: 2 Seconds Memory Limit: 65536 KBIn a typical assembly line, machines are connected one by one. The first machine's output product ....
分类:
其他好文 时间:
2014-08-26 17:16:16
阅读次数:
212
Alice and Bob is playing a game, and this time the game is all about the absolute value!
Alice has N different positive integers, and each number is not greater than N. Bob has a lot of blank paper, ...
分类:
其他好文 时间:
2014-08-26 15:37:46
阅读次数:
228
In a typical assembly line, machines are connected one by one. The first machine's output product will be the second machine's raw material. To simplify the problem, we put all machines
into a two-d...
分类:
其他好文 时间:
2014-08-26 15:37:36
阅读次数:
288