DescriptionThe cows are going to space! They plan to achieve orbit by building a sort of space elevator: a giant tower of blocks. They have K (1 //把多重...
分类:
其他好文 时间:
2014-11-11 22:24:28
阅读次数:
232
Backward Digit Sums
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 4487
Accepted: 2575
Description
FJ and his cows enjoy playing a mental game. They wri...
分类:
其他好文 时间:
2014-11-11 16:33:28
阅读次数:
167
Hopscotch
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 2113
Accepted: 1514
Description
The cows play the child's game of hopscotch in a non-traditiona...
分类:
其他好文 时间:
2014-11-11 08:13:18
阅读次数:
227
Yogurt factory
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 6821
Accepted: 3488
Description
The cows have purchased a yogurt factory that makes world-...
分类:
其他好文 时间:
2014-11-11 08:13:10
阅读次数:
121
Cow XORAdrian Vladu -- 2005Farmer John is stuck with another problem while feeding his cows.All of his N (1 ≤ N ≤ 100,000) cows (numbered 1..N) areli....
分类:
其他好文 时间:
2014-11-10 19:44:44
阅读次数:
295
DescriptionFJ is surveying his herd to find the most average cow. He wants to know how much milk this 'median' cow gives: half of the cows give as muc...
分类:
其他好文 时间:
2014-11-07 16:33:31
阅读次数:
170
POJ 3281 Dining
题目链接
题意:n个牛,每个牛有一些喜欢的食物和饮料,每种食物饮料只有一个,问最大能匹配上多少只牛每个牛都能吃上喜欢的食物和喜欢的饮料
思路:最大流,建模源点到每个食物连一条边,容量为1,每个饮料向汇点连一条边容量为1,然后由于每个牛有容量1,所以把牛进行拆点,然后食物连向牛的入点,牛的出点连向食物,跑一下最大流即可
代码:
#incl...
分类:
其他好文 时间:
2014-11-06 20:08:43
阅读次数:
192
Face The Right Way
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 2721
Accepted: 1246
Description
Farmer John has arranged his N (1 ≤ N ≤ 5,000) cows in...
分类:
其他好文 时间:
2014-11-06 17:32:23
阅读次数:
212
Aggressive cows
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 6510
Accepted: 3263
Description
Farmer John has built a new long barn, with N (2
His ...
分类:
其他好文 时间:
2014-11-06 13:08:13
阅读次数:
150
DescriptionFarmer John'sN(1 ≤N≤ 10,000) cows are lined up to be milked in the evening. Each cow has a unique "grumpiness" level in the range 1...100,0...
分类:
其他好文 时间:
2014-11-05 16:53:49
阅读次数:
204