摘要: A国有N座城市,依次标为1到N。同时,在这N座城市间有M条单向道路,每条道路的长度是一个正整数。现在,A国交通部指定了一条从城市1到城市N的路径,并且保证这条路径的长度是所有从城市1到城市N的路径中最短的。不幸的是,因为从城市1到城市N旅行的人越来越多,这条由交通部指定的路径经常发生堵塞。现在A国想 阅读全文
posted @ 2017-03-28 23:59 Klaier 阅读(166) 评论(0) 推荐(0) 编辑
摘要: Description Alice and Bob decide to play a funny game. At the beginning of the game they pick n(1 <= n <= 106) coins in a circle, as Figure 1 shows. A 阅读全文
posted @ 2017-03-28 22:37 Klaier 阅读(203) 评论(0) 推荐(0) 编辑