摘要:
Green Dam GirlTime Limit: 1 Second Memory Limit: 65536 KB Green Dam Girl (GDG) became bankrupt recently, and watashi picked her up to his dorm. Some ZJU ICPC team members would like to support her. T... 阅读全文
摘要:
Boring Board GameTime Limit: 2 Seconds Memory Limit: 65536 KB You know, when Lanrete and DD are together, they are always playing boring board games. And they invent the games themselves! Here is yet... 阅读全文
摘要:
Fruit WeightsTime Limit: 1000MS Memory Limit: 65536KTotal Submits: 44 Accepted: 10DescriptionHave you ever thought about comparing the weight of fruits? That’s what you should do in this problem... 阅读全文
摘要:
ACM CoalitionTime Limit: 1000MS Memory Limit: 65536KTotal Submits: 30 Accepted: 6DescriptionIn the recent parliament election, none of the parties have vast majority of seats, so there should be a coa... 阅读全文
摘要:
Hurry PlotterTime Limit: 1000MS Memory Limit: 65536KTotal Submits: 11 Accepted: 5DescriptionA plotter is a vector graphics printing device that connects to a computer to print graphical plots. There a... 阅读全文
摘要:
PaintingTime Limit: 1000MS Memory Limit: 65536KTotal Submits: 195 Accepted: 27Description Ethan wants to draw a painting on an m×n board. He can draw some strips on the board using a paintbrush ... 阅读全文
摘要:
Maze StretchingTime Limit: 1000MS Memory Limit: 65536KTotal Submits: 107 Accepted: 20DescriptionUsually the path in a maze is calculated as the sum of steps taken from the starting point until the end... 阅读全文
摘要:
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个动物所构... 阅读全文
摘要:
To the MaxTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 21624Accepted: 11192DescriptionGiven a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub... 阅读全文
摘要:
JosephTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 30210Accepted: 11259DescriptionThe Joseph's problem is notoriously known. For those who are not familiar with the original problem: from ... 阅读全文
摘要:
木棒Time Limit: 1000MSMemory Limit: 10000KTotal Submissions: 70801Accepted: 15486Description乔治拿来一组等长的木棒,将它们随机地砍断,使得每一节木棍的长度都不超过50个长度单位。然后他又想把这些木棍恢复到为裁截前的状态,但忘记了初始时有多少木棒以及木棒的初始长度。请你设计一个程序,帮助乔治计算木棒的可能最小长度... 阅读全文