当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

5669:Road

题目描述
$\ \ \ \ $Windy August like to fly in the sky ,together with the wind.But she will feel very tired after a long-time-flying,so she usually choose to walk.

$\ \ \ \ $Now there are $n$ sights,and there are $m$ roads between some of the sights.The roads are described in the format like $(a,b,c,d,w)$,saying that there are roads between every nodes $(x,y)$ ,$a\le x\le b$,$c\le y\le d$,and the cost of the roads are w.Windy August will start off at the nodes numbered 1,and she will go to the node numbered n.She can fly $k$ times every day,if she decide to fly in road $(u,v,w)$,she will go to $v $from $u$ with $0$ cost.

$\ \ \ \ $Please output the minimum cost from node $1$ to node $n$.
输入解释
$\ \ \ \ $The first line has a number T,means test case.(For some reasons,T=1.)

$\ \ \ \ $The next line is 2 numbers $n$,$m$.

$\ \ \ \ $Next is m line,there are 5 numbers in every line,which means (a,b,c,d,w).

$\ \ \ \ T=1,1 \le n \le 5*10^4 , 1 \le m \le 10^4,0\le k \le 10,1\le w \le 10^3.$
输出解释
$\ \ \ \ $Only 1 number in 1 line,which means the minimum cost.

$\ \ \ \ $If node 1 and node n are disconnected,output "CreationAugust is a sb!".
输入样例
1
5 3 0
1 2 4 5 42
5 5 4 4 468
1 1 3 3 335
输出样例
42
来自杭电HDUOJ的附加信息
Recommend wange2014

该题目是Virtual Judge题目,来自 杭电HDUOJ

题目来源 BestCoder Round #80

源链接: HDU-5669

最后修改于 2020-10-25T23:24:40+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
4000/2000MS(Java/Others) 131072/131072K(Java/Others)