摘要: 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 阅读(229) 评论(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 阅读(411) 评论(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 阅读(416) 评论(0) 推荐(0) 编辑