bzoj1621[Usaco2008 Open]Roads Around The Farm分岔路口 题意: n头牛在路上走,每当它们走到岔路,如果这些牛可以分为数量相差刚好为k的两群,那么它们就会分成这样的两群往前走,否则就会停下来吃草。问最后有多少群在吃草。n≤10^9,k≤1000。 题解: 暴 ...
分类:
其他好文 时间:
2016-09-18 21:01:08
阅读次数:
152
Roadblocks Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 12697 Accepted: 4491 Description Bessie has moved to a small farm and sometimes ...
分类:
数据库 时间:
2016-09-14 18:56:43
阅读次数:
184
PIGS Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 20253 Accepted: 9252 Description Mirko works on a pig farm that consists of M locked p ...
分类:
其他好文 时间:
2016-09-12 17:16:28
阅读次数:
148
Farmer John has N hills on his farm (1 <= N <= 1,000), each with an integer elevation in the range 0 .. 100. In the winter, since there is abundant sn ...
分类:
其他好文 时间:
2016-08-29 00:03:08
阅读次数:
266
Description Bessie has moved to a small farm and sometimes enjoys returning to visit one of her best friends. She does not want to get to her old home ...
分类:
数据库 时间:
2016-08-22 09:31:36
阅读次数:
303
Description A straight dirt road connects two fields on FJ's farm, but it changes elevation more than FJ would like. His cows do not mind climbing up ...
分类:
其他好文 时间:
2016-08-20 11:21:14
阅读次数:
189
MGLAR10 - Growing Strings Gene and Gina have a particular kind of farm. Instead of growing animals and vegetables, as it is usually the case in regula ...
Contaminated Milk 题目描述 Farmer John, known far and wide for the quality of the milk produced on his farm, is hosting a milk-tasting party for N of his ...
分类:
其他好文 时间:
2016-08-14 07:07:52
阅读次数:
282
DescriptionOne cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow party to be held at farm #X (1 ≤ X ≤ N). A total of M (1 ≤ M ≤ 100,000) unidirectional (...
分类:
其他好文 时间:
2016-08-10 14:25:32
阅读次数:
177
题目链接:http://poj.org/problem?id=2135 Farm Tour Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 14821 Accepted: 5657 Description When FJ's fr ...
分类:
其他好文 时间:
2016-08-10 12:48:58
阅读次数:
238