Speed Reading
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 8431
Accepted: 3935
Description
All K (1 ≤ K ≤ 1,000) of the cows are participating in Farm...
分类:
其他好文 时间:
2014-11-05 14:54:21
阅读次数:
171
The Cow LexiconTime Limit:2000MSMemory Limit:65536KTotal Submissions:7909Accepted:3711DescriptionFew know that the cows have their own dictionary with...
分类:
其他好文 时间:
2014-11-05 12:40:48
阅读次数:
170
Layout
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7468
Accepted: 3581
Description
Like everyone else, cows like to stand close to their friends when...
分类:
其他好文 时间:
2014-11-05 09:20:39
阅读次数:
156
题目1672: [Usaco2005 Dec]Cleaning Shifts 清理牛棚Time Limit:5 SecMemory Limit:64 MBDescriptionFarmer John's cows, pampered since birth, have reached new hei...
分类:
其他好文 时间:
2014-11-04 22:35:54
阅读次数:
332
题目:poj 2186 Popular Cows
题意:n头牛,其中存在一些牛相互崇拜,具有传递性,问有多少头牛是被其他所有牛崇拜的。
分析:建立一个有向图,然后强连通缩点,之后求出度为0的点,假如存在多个,那么ans = 0,因为缩点之后如果x崇拜y,x也崇拜z,那么肯定y和z不能互相崇拜,不满足。
然后求出度为0的这个点缩点前环上有多少个点就ans
AC代码:
...
分类:
其他好文 时间:
2014-11-04 19:44:59
阅读次数:
236
题目1684: [Usaco2005 Oct]Close EncounterTime Limit:5 SecMemory Limit:64 MBDescriptionLacking even a fifth grade education, the cows are having trouble w...
分类:
其他好文 时间:
2014-11-04 19:15:59
阅读次数:
272
题目1677: [Usaco2005 Jan]Sumsets 求和Time Limit:5 SecMemory Limit:64 MBSubmit:617Solved:344[Submit][Status]DescriptionFarmer John commanded his cows to se...
分类:
其他好文 时间:
2014-11-04 10:41:29
阅读次数:
200
Hotel
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 12446
Accepted: 5363
Description
The cows are journeying north to Thunder Bay in Canada to gain cul...
分类:
其他好文 时间:
2014-11-01 16:20:08
阅读次数:
127
Expedition
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7349
Accepted: 2179
Description
A group of cows grabbed a truck and ventured on an expedition...
分类:
其他好文 时间:
2014-10-31 20:42:45
阅读次数:
160
题目1652: [Usaco2006 Feb]Treats for the CowsTime Limit:5 SecMemory Limit:64 MBSubmit:234Solved:185[Submit][Status]DescriptionFJ has purchased N (1 3 us....
分类:
其他好文 时间:
2014-10-31 18:37:47
阅读次数:
309