22342_SnowClearing

2022-5-16 18:21| 发布者: Hocassian| 查看: 21| 评论: 0|原作者: 肇庆学院ACM合集

摘要:
C:\Users\Administrator\Downloads\2019-10-12-10-14-5-89506339480700-Problem List-采集的数据-后羿采集器.html

Pro.ID

22342

Title

Snow Clearing

Title链接

http://10.20.2.8/oj/exercise/problem?problem_id=22342

AC

1

Submit

1

Ratio

100.00%

时间&空间限制

  • Time Limit: 1200/400 MS (Java/Others)     Memory Limit: 131072/65536 K (Java/Others)
  • 描述

    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.

    输出

    Description
    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?
    Input
    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.
    Output
    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.
    Sample Input
    0 0
    0 0 10000 10000
    5000 -10000 5000 10000
    5000 10000 10000 10000
    Sample Output
    3:55
    Source

    样例输入

    0 0
    0 0 10000 10000
    5000 -10000 5000 10000
    5000 10000 10000 10000

    样例输出

    3:55

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部