文章来源:http://www.cnblogs.com/hyl2000/p/5734908.html NOIP中二分应该是很简单的算法了,去年noip的day2-t1就是裸的二分,这里有两个例题 1、poj2456:Farmer John has built a new long barn, wit ...
分类:
其他好文 时间:
2017-10-01 19:30:31
阅读次数:
230
Every time it rains on Farmer John's fields, a pond forms over Bessie's favorite clover patch. This means that the clover is covered by water for awhi ...
分类:
其他好文 时间:
2017-09-30 23:04:40
阅读次数:
232
Description Ever the maturing businessman, Farmer John realizes that he must manage his time effectively. He has N jobs conveniently numbered 1..N (1 ...
分类:
其他好文 时间:
2017-09-30 16:26:34
阅读次数:
246
Description Farmer John决定为他的所有奶牛都配备手机,以此鼓励她们互相交流。不过,为此FJ必须在奶牛们居住的N(1 <= N <= 10,000)块草地中选一些建上无线电通讯塔,来保证任意两块草地间都存在手机信号。所有的N块草地按1..N 顺次编号。 所有草地中只有N-1对是相 ...
分类:
其他好文 时间:
2017-09-29 21:17:03
阅读次数:
227
Tree Cutting Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 4834 Accepted: 2958 Description After Farmer John realized that Bessie had ins ...
分类:
其他好文 时间:
2017-09-29 14:54:04
阅读次数:
188
题目链接:http://www.lydsy.com/JudgeOnline/problem.php?id=1617 题意: Farmer John以及他的N(1 <= N <= 2,500)头奶牛打算过一条河,但他们所有的渡河工具,仅仅是一个木筏。 由于奶牛不会划船,在整个渡河过程中,FJ必须始终在 ...
分类:
其他好文 时间:
2017-09-29 10:09:04
阅读次数:
156
★★☆ 输入文件:phoneline.in 输出文件:phoneline.out 简单对比时间限制:1 s 内存限制:16 MB Farmer John打算将电话线引到自己的农场,但电信公司并不打算为他提供免费服务。于是,FJ必须为此向电信公司支付一定的费用。 FJ的农场周围分布着N(1 <= N ...
分类:
其他好文 时间:
2017-09-29 09:56:48
阅读次数:
186
P2209 [USACO13OPEN]燃油经济性Fuel Economy P2209 [USACO13OPEN]燃油经济性Fuel Economy P2209 [USACO13OPEN]燃油经济性Fuel Economy 题目描述 Farmer John has decided to take a ...
分类:
其他好文 时间:
2017-09-29 00:19:27
阅读次数:
227
Description The farm has many hills upon which Farmer John would like to place guards to ensure the safety of his valuable milk-cows. He wonders how m ...
分类:
其他好文 时间:
2017-09-28 22:25:31
阅读次数:
261
题目描述 Farmer John went to cut some wood and left N (2 ≤ N ≤ 100,000) cows eating the grass, as usual. When he returned, he found to his horror that the ...
分类:
其他好文 时间:
2017-09-28 12:53:06
阅读次数:
216