上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要: DescriptionYou are given a sequence ofnintegersa1, a2, ... , anin non-decreasing order. In addition to that, you are given several queries consisting ... 阅读全文
posted @ 2014-05-26 17:21 Hust_BaoJia 阅读(162) 评论(0) 推荐(0) 编辑
摘要: DescriptionFarmer John's cows refused to run in his marathon since he chose a path much too long for their leisurely lifestyle. He therefore wants to ... 阅读全文
posted @ 2014-05-26 11:45 Hust_BaoJia 阅读(219) 评论(0) 推荐(0) 编辑
摘要: DescriptionThere are n houses in the village and some bidirectional roads connecting them. Every day peole always like to ask like this "How far is it... 阅读全文
posted @ 2014-05-25 13:12 Hust_BaoJia 阅读(176) 评论(0) 推荐(0) 编辑
摘要: DescriptionCerror is the mayor of city HangZhou. As you may know, the traffic system of this city is so terrible, that there are traffic jams everywhe... 阅读全文
posted @ 2014-05-25 09:01 Hust_BaoJia 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 题目描述If the difference between any two adjancent elements in a sequence is not more than K, then we call this sequence is a K-diff sequence. A subseque... 阅读全文
posted @ 2014-05-23 20:35 Hust_BaoJia 阅读(156) 评论(0) 推荐(0) 编辑
摘要: DescriptionFreddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visi... 阅读全文
posted @ 2014-05-22 16:13 Hust_BaoJia 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Closest Common AncestorsTime Limit:2000MSMemory Limit:10000KTotal Submissions:14635Accepted:4676DescriptionWrite a program that takes as input a roote... 阅读全文
posted @ 2014-05-22 13:20 Hust_BaoJia 阅读(167) 评论(0) 推荐(0) 编辑
摘要: DescriptionWe will use the following (standard) definitions from graph theory. LetVbe a nonempty and finite set, its elements being called vertices (o... 阅读全文
posted @ 2014-05-21 13:14 Hust_BaoJia 阅读(134) 评论(0) 推荐(0) 编辑
摘要: DescriptionA number of schools are connected to a computer network. Agreements have been developed among those schools: each school maintains a list o... 阅读全文
posted @ 2014-05-21 11:42 Hust_BaoJia 阅读(188) 评论(0) 推荐(0) 编辑
摘要: DescriptionA network administrator manages a large network. The network consists of N computers and M links between pairs of computers. Any pair of co... 阅读全文
posted @ 2014-05-20 20:47 Hust_BaoJia 阅读(143) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
努力