摘要:
Revamping TrailsTime Limit: 4000MS Memory Limit: 65536KTotal Submits: 107 Accepted: 22DescriptionFarmer John dutifully checks on the cows every day. He traverses some of the M (1 <= M <= 50,000)... 阅读全文
摘要:
Stock MarketTime Limit: 4000MS Memory Limit: 65536KTotal Submits: 134 Accepted: 29DescriptionDespite their innate prudence, the cows took a beating in the home mortgage market and now are trying their... 阅读全文
摘要:
The Baric BovineTime Limit: 1000MS Memory Limit: 65536KTotal Submits: 76 Accepted: 17DescriptionFollowing up on a journal article about increasing milk production, Bessie has become the Baric Bovine b... 阅读全文
摘要:
Making the GradeTime Limit: 1000MS Memory Limit: 65536KTotal Submits: 299 Accepted: 47DescriptionA straight dirt road connects two fields on FJ's farm, but it changes elevation more than FJ would like... 阅读全文
摘要:
Watering HoleTime Limit: 1000MS Memory Limit: 65536KTotal Submits: 120 Accepted: 30DescriptionFarmer John has decided to bring water to his N (1 <= N <= 300) pastures which are conveniently numb... 阅读全文
摘要:
Crisis on the FarmTime Limit: 1000MS Memory Limit: 65536KTotal Submits: 111 Accepted: 18DescriptionFarmer John and his herd of exotic dancing bovines have been practicing for his new moosical, "The St... 阅读全文
摘要:
Mixed Up CowsTime Limit: 1000MS Memory Limit: 65536KTotal Submits: 95 Accepted: 28DescriptionEach of Farmer John's N (4 ≤ N ≤ 16) cows has a unique serial number S_i (1 ≤ S_i ≤ 25,000). Th... 阅读全文
摘要:
放苹果Time Limit: 1000MSMemory Limit: 10000KTotal Submissions: 14790Accepted: 9317Description把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。Input第一行是测试数据的数目t(0 <= t <= 20)。以下每行均... 阅读全文
摘要:
Ugly NumbersTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 11933Accepted: 5244DescriptionUgly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9,... 阅读全文
摘要:
食物链Time Limit: 1000MSMemory Limit: 10000KTotal Submissions: 17712Accepted: 4953Description动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。 有人用两种说法对这N个动物所构... 阅读全文