QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#83096#4779. Train delaysxiaowuc1AC ✓1562ms189904kbJava116.0kb2023-03-01 05:50:092023-03-01 15:35:09

详细

Test #1:

score: 100
Accepted
time: 65ms
memory: 53096kb

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.3
IMPOSSIBLE
305.0532857142857

result:

ok  (3 test cases)

Test #2:

score: 0
Accepted
time: 1562ms
memory: 189904kb

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.3
305.0532857142857
3.07
4.6
293.20000000000005
5.0
23.9
32.0
22.0
144.2
59.01
2.0
IMPOSSIBLE
45.27571428571427
1400.2402072597242
139.63
202.475
300.12
551.4337032627635
8631.055829565745
273.42
270.075
290.2875
339.64
IMPOSSIBLE
1554.7497151547316
449.6300986842109
IMPOSSIBLE
2647.557531673368
...

result:

ok  (76 test cases)