摘要:
Description N cities named with numbers 1 ... N are connected with one-way roads. Each road has two parameters associated with it : the road length an 阅读全文
posted @ 2018-08-19 20:36
l..q
阅读(211)
评论(0)
推荐(0)
摘要:
Problem Description 给你n个点,m条无向边,每条边都有长度d和花费p,给你起点s终点t,要求输出起点到终点的最短距离及其花费,如果最短距离有多条路线,则输出花费最少的。 Input 输入n,m,点的编号是1~n,然后是m行,每行4个数 a,b,d,p,表示a和b之间有一条边,且其 阅读全文
posted @ 2018-08-19 20:28
l..q
阅读(181)
评论(0)
推荐(0)

浙公网安备 33010602011771号