Problem 1920 --Problem C: Snow Clearing

1920: Problem C: Snow Clearing

"
Time Limit $1$ 秒/Second(s) Memory Limit $512$ 兆字节/Megabyte(s)
提交总数 $2$ 正确数量 $2$
裁判形式 标准裁判/Standard Judge 我的状态 尚未尝试
难度 分类标签

Problem C: Snow Clearing

As the days become shorter and the nights become longer we turn our thoughts to snow clearing. Due to budget cuts, the Big Noisy City has exactly one snow plow. The plow can clear exactly one lane of a road in a single pass. Whenever there is snow on the ground, the plow departs from its hangar and tours the city, plowing as it goes. What is the minimum time that the plow needs to clear every lane of every road?

The first line of input contains two integers: the x,y coordinates of the hangar (in metres). Up to 100 lines follow. Each gives the coordinates (in metres) of the beginning and end of a street. All roads are perfectly straight, with one lane in each direction. The plow can turn any direction (including a U-turn) at any intersection, and can turn around at the end of any street. The plow travels at 20 km/h if it is plowing, and 50 km/h if the lane it is driving on has already been plowed. It is possible to reach all streets from the hangar.

Your output should be the time, in hours and minutes, required to clear the streets and return to the hangar. Round to the nearest minute.

0 0
0 0 10000 10000
5000 -10000 5000 10000
5000 10000 10000 10000
3:55

推荐代码 查看1920 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$0 $ms] AOJ大管家 84435 2017-04-27 15:29:26
内存最少[$0 $KB] 淡意的温柔 589672 2020-06-01 09:14:23
第一AC AOJ大管家 84435 2017-04-27 15:29:26
第一挑战 AOJ大管家 84435 2017-04-27 15:29:26

赛题来源/所属竞赛 NA N/A

竞赛编号 竞赛名称 竞赛时间 访问比赛