QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#751465#4779. Train delaysgyydp123_LIMAC ✓252ms11876kbC++202.2kb2024-11-15 18:51:002024-11-15 18:51:01

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3868kb

input:

3
Hamburg Bremen
3
Hamburg Bremen 15 68 10 5
Hamburg Bremen 46 55 50 60
Bremen Frankfurt 14 226 10 120
Amsterdam Rotterdam
1
Amsterdam Utrecht 10 22 5 10
BremenVegesack Utrecht
9
BremenVegesack BremenHbf 15 10 0 1
BremenVegesack BremenHbf 45 10 0 1
BremenVegesack Leer 23 140 10 15
BremenHbf Osnabruc...

output:

68.3000000000
IMPOSSIBLE
305.0532857143

result:

ok  (3 test cases)

Test #2:

score: 0
Accepted
time: 252ms
memory: 11876kb

input:

76
Hamburg Bremen
3
Hamburg Bremen 15 68 10 5
Hamburg Bremen 46 55 50 60
Bremen Frankfurt 14 226 10 120
BremenVegesack Utrecht
9
BremenVegesack BremenHbf 15 10 0 1
BremenVegesack BremenHbf 45 10 0 1
BremenVegesack Leer 23 140 10 15
BremenHbf Osnabruck 44 51 60 70
Osnabruck Amersfoort 55 147 38 40
Am...

output:

68.3000000000
305.0532857143
3.0700000000
4.6000000000
293.2000000000
5.0000000000
23.9000000000
32.0000000000
22.0000000000
144.2000000000
59.0100000000
2.0000000000
IMPOSSIBLE
45.2757142857
1400.2402072597
139.6300000000
202.4750000000
300.1200000000
551.4337032628
8631.0558295658
273.4200000000
2...

result:

ok  (76 test cases)