摘要: Gold CoinsTime Limit:1000MSMemory Limit:30000KTotal Submissions:19537Accepted:12169DescriptionThe king pays his loyal knight in gold coins. On the first day of his service, the knight receives one gold coin. On each of the next two days (the second and third days of service), the knight receives two 阅读全文
posted @ 2013-07-28 15:44 ~~Snail~~ 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Saruman's ArmyTime Limit:1000MSMemory Limit:65536KTotal Submissions:2582Accepted:1284DescriptionSaruman the White must lead his army along a straight path from Isengard to Helm’s Deep. To keep track of his forces, Saruman distributes seeing stones, known as palantirs, among the troops. Each pala 阅读全文
posted @ 2013-07-28 15:20 ~~Snail~~ 阅读(319) 评论(0) 推荐(0) 编辑
摘要: Best Cow LineTime Limit:1000MSMemory Limit:65536KTotal Submissions:6252Accepted:2010DescriptionFJ is about to take hisN(1 ≤N≤ 2,000) cows to the annual"Farmer of the Year" competition. In this contest every farmer arranges his cows in a line and herds them past the judges.The contest organ 阅读全文
posted @ 2013-07-28 13:47 ~~Snail~~ 阅读(253) 评论(0) 推荐(0) 编辑
摘要: Lake CountingTime Limit:1000MSMemory Limit:65536KTotal Submissions:16042Accepted:8118DescriptionDue to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 2 #include 3 4 using namespace std; 5 6 int n,m; 7 char garden[102][102] 阅读全文
posted @ 2013-07-28 12:28 ~~Snail~~ 阅读(181) 评论(0) 推荐(0) 编辑