上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页
摘要: 某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多。这让行人很困扰。 现在,已知起点和终点,请你计算出要从起点到终点,最短需要行走多少距离。Input本题目包含多组数据,请处 阅读全文
posted @ 2017-08-12 08:27 西北会法语 阅读(123) 评论(0) 推荐(0) 编辑
摘要: The Department of National Defence (DND) wishes to connect several northern outposts by a wireless network. Two different communication technologies a 阅读全文
posted @ 2017-08-10 17:47 西北会法语 阅读(125) 评论(0) 推荐(0) 编辑
摘要: You are a member of the space station engineering team, and are assigned a task in the construction process of the station. You are expected to write 阅读全文
posted @ 2017-08-10 17:45 西北会法语 阅读(136) 评论(0) 推荐(0) 编辑
摘要: There are N (2<=N<=600) cities,each has a value of happiness,we consider two cities A and B whose value of happiness are VA and VB,if VA is a prime nu 阅读全文
posted @ 2017-08-10 17:44 西北会法语 阅读(146) 评论(0) 推荐(0) 编辑
摘要: The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages some years ag 阅读全文
posted @ 2017-08-10 17:43 西北会法语 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Given an undirected weighted graph G, you should find one of spanning trees specified as follows. The graph G is an ordered pair (V, E), where V is a 阅读全文
posted @ 2017-08-10 17:43 西北会法语 阅读(108) 评论(0) 推荐(0) 编辑
摘要: ice_cream’s world becomes stronger and stronger; every road is built as undirected. The queen enjoys traveling around her world; the queen’s requireme 阅读全文
posted @ 2017-08-10 17:42 西北会法语 阅读(110) 评论(0) 推荐(0) 编辑
摘要: The island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has no public highways. So the traffic is difficult in Flatopia. The Flatopia 阅读全文
posted @ 2017-08-10 17:41 西北会法语 阅读(169) 评论(0) 推荐(0) 编辑
摘要: You are given n points on the straight line — the positions (x-coordinates) of the cities and m points on the same line — the positions (x-coordinates 阅读全文
posted @ 2017-08-09 14:45 西北会法语 阅读(208) 评论(0) 推荐(0) 编辑
摘要: First year of new millenium is gone away. In commemoration of it write a program that finds the name of the day of the week for any date in 2001. Inpu 阅读全文
posted @ 2017-08-09 14:44 西北会法语 阅读(196) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页