摘要: Fence RepairTime Limit:2000MSMemory Limit:65536KTotal Submissions:18686Accepted:5948DescriptionFarmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needsN(1 ≤N≤ 20,000) planks of wood, each having some integer lengthLi(1 ≤Li≤ 50,000) uni 阅读全文
posted @ 2013-05-27 16:56 ~~Snail~~ 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Who's in the MiddleTime Limit:1000MSMemory Limit:65536KTotal Submissions:26878Accepted:15526DescriptionFJ 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 much or more than the median; half give as much o 阅读全文
posted @ 2013-05-27 16:44 ~~Snail~~ 阅读(148) 评论(0) 推荐(0) 编辑
摘要: HighwaysTime Limit:1000MSMemory Limit:65536KTotal Submissions:18115Accepted:8420DescriptionThe island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has no public highways. So the traffic is difficult in Flatopia. The Flatopian government is aware of this problem. They're planning 阅读全文
posted @ 2013-05-27 16:41 ~~Snail~~ 阅读(118) 评论(0) 推荐(0) 编辑