摘要: 题目描述 The N cows (2 <= N <= 1,000) conveniently numbered 1..N are grazing among the N pastures also conveniently numbered 1..N. Most conveniently of al 阅读全文
posted @ 2018-11-23 23:30 NKDEWSM 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 题意翻译 约翰一共有N)个牧场.由M条布满尘埃的小径连接.小径可 以双向通行.每天早上约翰从牧场1出发到牧场N去给奶牛检查身体. 通过每条小径都需要消耗一定的时间.约翰打算升级其中K条小径,使之成为高 速公路.在高速公路上的通行几乎是瞬间完成的,所以高速公路的通行时间为0. 请帮助约翰决定对哪些小径 阅读全文
posted @ 2018-11-23 17:08 NKDEWSM 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Bessie is playing a number game against Farmer John, and she wants you to help her achieve victory. Game i starts with an integer N_i (1 <= N_i < 阅读全文
posted @ 2018-11-23 10:51 NKDEWSM 阅读(572) 评论(0) 推荐(0) 编辑