摘要: Fence RepairTime Limit:2000MSMemory Limit:65536KTotal Submissions:23532Accepted:7491DescriptionFarmer 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 @ 2014-04-11 21:00 heaventouch 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Sorting It All OutTime Limit:1000MSMemory Limit:10000KTotal Submissions:26088Accepted:9035DescriptionAn ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to largest. For example, the sorted sequence A, B, C, D i 阅读全文
posted @ 2014-04-11 17:43 heaventouch 阅读(248) 评论(0) 推荐(0) 编辑