上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 48 下一页
摘要: Description There are n cities and m two-way roads in Berland, each road connects two cities. It is known that there is no more than one road connecti 阅读全文
posted @ 2016-10-07 21:34 ljh_2000 阅读(399) 评论(0) 推荐(0) 编辑
摘要: Description There are n cities and m two-way roads in Berland, each road connects two cities. It is known that there is no more than one road connecti 阅读全文
posted @ 2016-10-07 14:59 ljh_2000 阅读(318) 评论(0) 推荐(0) 编辑
摘要: Description The map of Berland is a rectangle of the size n × m, which consists of cells of size 1 × 1. Each cell is either land or water. The map is 阅读全文
posted @ 2016-10-06 19:29 ljh_2000 阅读(537) 评论(0) 推荐(0) 编辑
摘要: Description You are given undirected weighted graph. Find the length of the shortest cycle which starts from the vertex 1 and passes throught all the 阅读全文
posted @ 2016-10-06 16:24 ljh_2000 阅读(344) 评论(0) 推荐(0) 编辑
摘要: Description Polycarp is a music editor at the radio station. He received a playlist for tomorrow, that can be represented as a sequence a1, a2, ..., a 阅读全文
posted @ 2016-10-06 14:57 ljh_2000 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Description Modern text editors usually show some information regarding the document being edited. For example, the number of words, the number of pag 阅读全文
posted @ 2016-10-06 14:52 ljh_2000 阅读(410) 评论(0) 推荐(0) 编辑
摘要: Description There are three friend living on the straight line Ox in Lineland. The first friend lives at the point x1, the second friend lives at the 阅读全文
posted @ 2016-10-06 14:36 ljh_2000 阅读(415) 评论(0) 推荐(0) 编辑
摘要: Description When Kefa came to the restaurant and sat at a table, the waiter immediately brought him the menu. There were n dishes. Kefa knows that he 阅读全文
posted @ 2016-10-05 22:46 ljh_2000 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Description 司令部的将军们打算在N × M的网格地图上部署他们的炮兵部队。一个N × M的地图由N行M列组成,地图的每一格可能是山地(用"H"表示),也可能是平原(用"P"表示),如下图。在每一格平原地形上最多可以布置一支炮兵部队 (山地上不能够部署炮兵部队);一支炮兵部队在地 阅读全文
posted @ 2016-10-04 17:04 ljh_2000 阅读(519) 评论(0) 推荐(0) 编辑
摘要: Description 在经济全球化浪潮的影响下,习惯于漫步在清晨的乡间小路的邮递员Blue Mary也开始骑着摩托车传递邮件了。 不过,她经常回忆起以前在乡间漫步的情景。昔日,乡下有依次编号为1..n的n个小村庄,某些村庄之间有一些双 向的土路。从每个村庄都恰好有一条路径到达村庄1(即比特堡)。并 阅读全文
posted @ 2016-10-02 17:08 ljh_2000 阅读(281) 评论(0) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 48 下一页