QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#117618#4779. Train delaysDitaMirikaAC ✓41ms5220kbC++141.2kb2023-07-01 20:34:092023-07-01 20:34:10

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3776kb

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.3000000
IMPOSSIBLE
305.0532857

result:

ok  (3 test cases)

Test #2:

score: 0
Accepted
time: 41ms
memory: 5220kb

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.3000000
305.0532857
3.0700000
4.6000000
293.2000000
5.0000000
23.9000000
32.0000000
22.0000000
144.2000000
59.0100000
2.0000000
IMPOSSIBLE
45.2757143
1400.2402073
139.6300000
202.4750000
300.1200000
551.4337033
8631.0558296
273.4200000
270.0750000
290.2875000
339.6400000
IMPOSSIBLE
1554.7497152
4...

result:

ok  (76 test cases)