摘要: WormholesTime Limit:2000MSMemory Limit:65536KTotal Submissions:38300Accepted:14095DescriptionWhile exploring his many farms, Farmer John has discovere... 阅读全文
posted @ 2015-11-25 14:58 zhaop 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Til the Cows Come Home Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 37662 Accepted: 12836 Description Bessie is out in the field and wan 阅读全文
posted @ 2015-11-24 20:13 zhaop 阅读(208) 评论(0) 推荐(0) 编辑
摘要: Minimum Transport CostTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9109Accepted Submission(s): ... 阅读全文
posted @ 2015-11-23 23:14 zhaop 阅读(246) 评论(0) 推荐(0) 编辑
摘要: The Unique MSTTime Limit:1000MSMemory Limit:10000KTotal Submissions:25203Accepted:8995DescriptionGiven a connected undirected graph, tell if its minim... 阅读全文
posted @ 2015-11-22 17:00 zhaop 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Truck HistoryTime Limit:2000MSMemory Limit:65536KTotal Submissions:22648Accepted:8781DescriptionAdvanced Cargo Movement, Ltd. uses trucks of different... 阅读全文
posted @ 2015-11-22 10:39 zhaop 阅读(202) 评论(0) 推荐(0) 编辑
摘要: BSTTime Limit:1000MSMemory Limit:65536KTotal Submissions:9182Accepted:5613DescriptionConsider an infinite full binary search tree (see the figure belo... 阅读全文
posted @ 2015-11-21 21:27 zhaop 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 树状数组求逆序对转载http://www.cnblogs.com/shenshuyang/archive/2012/07/14/2591859.html转载:树状数组,具体的说是 离散化+树状数组。这也是学习树状数组的第一题.算法的大体流程就是:1.先对输入的数组离散化,使得各个元素比较接近,而不是... 阅读全文
posted @ 2015-11-21 15:42 zhaop 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Network SaboteurTime Limit:2000MSMemory Limit:65536KTotal Submissions:10391Accepted:4990DescriptionA university network is composed of N computers. Sy... 阅读全文
posted @ 2015-11-20 19:06 zhaop 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Ctime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter making bad dives into swimming pools, Wilb... 阅读全文
posted @ 2015-11-20 15:36 zhaop 阅读(194) 评论(0) 推荐(0) 编辑
摘要: HighwaysTime Limit:1000MSMemory Limit:65536KTotal Submissions:26516Accepted:12136DescriptionThe island nation of Flatopia is perfectly flat. Unfortuna... 阅读全文
posted @ 2015-11-19 17:11 zhaop 阅读(216) 评论(0) 推荐(0) 编辑