Quick Change Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 6288 Accepted: 4468 Description J.P. Flathead’s Grocery Store hires cheap labo ...
分类:
其他好文 时间:
2019-03-29 00:42:37
阅读次数:
164
食物链 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 100235 Accepted: 30292 Description 动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个 ...
分类:
其他好文 时间:
2019-03-28 00:48:00
阅读次数:
167
FJ is about to take his N (1 ≤ N ≤ 2,000) cows to the annual"Farmer of the Year" competition. In this contest every farmer arranges his cows in a line ...
分类:
其他好文 时间:
2019-03-28 00:21:33
阅读次数:
154
"Good man never makes girls wait or breaks an appointment!" said the mandarin duck father. Softly touching his little ducks' head, he told them a stor ...
分类:
其他好文 时间:
2019-03-27 19:37:21
阅读次数:
149
http://poj.org/problem?id=3461 Description The French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter 'e'. He w ...
分类:
其他好文 时间:
2019-03-27 12:42:43
阅读次数:
107
Due to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 <= N <= 100; 1 <= M <= ...
分类:
其他好文 时间:
2019-03-27 00:20:59
阅读次数:
291
2009那篇论文里介绍的做法 "这里面" 有下载链接 这个题是要转成差分序列再做的 导致我WA了一发的地方 写成 =了(论文里说的距离不小于k 转成差分序列好像就要写成 ) cpp include include include using namespace std; using namespac ...
分类:
其他好文 时间:
2019-03-26 22:37:31
阅读次数:
184
思路 "思路就是这个题" 注意POJ数据较强,算phi需要预处理质因数,然后不能define int long long否则会TLE 还要注意P不一定是质数,所以分子要先除掉n 代码 cpp include include include include using namespace std; i ...
分类:
其他好文 时间:
2019-03-25 20:43:06
阅读次数:
158
Brackets Sequence Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 35049 Accepted: 10139 Special Judge Description Let us define a regular b ...
分类:
其他好文 时间:
2019-03-25 14:45:57
阅读次数:
159
OJ上的一些水题(可用来练手和增加自信) (POJ 3299,POJ 2159,POJ 2739,POJ 1083,POJ 2262,POJ 1503,POJ 3006,POJ 2255,POJ 3094) 初期: 一.基本算法: 枚举. (POJ 1753,POJ 2965) 贪心(POJ 132 ...
分类:
其他好文 时间:
2019-03-25 01:20:01
阅读次数:
136