题目描述 Farmer John always wants his cows to have enough water and thus has made a map of the N (1 <= N <= 700) water pipes on the farm that connect the ...
分类:
其他好文 时间:
2017-03-20 22:19:44
阅读次数:
255
题目描述 When FJ's friends visit him on the farm, he likes to show them around. His farm comprises N (1 <= N <= 1000) fields numbered 1..N, the first of w ...
分类:
其他好文 时间:
2017-03-19 17:32:41
阅读次数:
216
1 #include 2 #include 3 struct edge{ 4 int to,cap,rev,nx,we; 5 }G[40050]; 6 int n,m,p; 7 int h[2050],q[40050],d[2050]; 8 bool mark[2050]; 9 int Min(in... ...
分类:
其他好文 时间:
2017-03-19 17:30:57
阅读次数:
214
【BZOJ3011】[Usaco2012 Dec]Running Away From the Barn Description It's milking time at Farmer John's farm, but the cows have all run away! Farmer John n ...
分类:
其他好文 时间:
2017-03-10 20:34:44
阅读次数:
189
PIGS Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 20892 Accepted: 9549 Description Mirko works on a pig farm that consists of M locked p ...
分类:
其他好文 时间:
2017-03-01 18:17:04
阅读次数:
218
用力戳我直达virtual judge~ 题意:有N个farm,每个farm花销farm[i]元。要求分成M块,尽可能让每个块花销少,求M个块中的最大值。(最大化最小值) 做法:二分结果(左界),每次判断mid能形成几个块,如果cur > M,说明钱必须更大,让块变少(low = mid + 1); ...
分类:
其他好文 时间:
2017-02-28 19:08:16
阅读次数:
200
Building roads Problem Description Farmer John's farm has N barns, and there are some cows that live in each barn. The cows like to drop around, so Jo ...
分类:
其他好文 时间:
2017-02-24 19:08:33
阅读次数:
261
Building roads Problem Description Farmer John's farm has N barns, and there are some cows that live in each barn. The cows like to drop around, so Jo ...
分类:
其他好文 时间:
2017-02-04 20:19:30
阅读次数:
290
PIGS Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 20738 Accepted: 9481 Description Mirko works on a pig farm that consists of M locked p ...
分类:
其他好文 时间:
2017-01-26 16:31:09
阅读次数:
207
Roadblocks Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 13594 Accepted: 4783 Description Bessie has moved to a small farm and sometimes ...
分类:
数据库 时间:
2017-01-25 21:14:14
阅读次数:
289