QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#585864#5648. Crossing the RailwayspokorfanclubWA 4ms3884kbC++206.5kb2024-09-23 22:29:032024-09-23 22:29:03

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4 3 5 1
1 2 1
3 4 1
2 3 2
3 4 3

output:

0

result:

ok single line: '0'

Test #2:

score: 0
Accepted
time: 1ms
memory: 3564kb

input:

3 3 12 2
2 10 1
1 6 2
8 12 3

output:

2

result:

ok single line: '2'

Test #3:

score: 0
Accepted
time: 1ms
memory: 3604kb

input:

8 4 13 2
1 4 1
5 13 1
1 5 2
6 13 2
1 9 3
10 13 3
1 10 4
11 13 4

output:

2

result:

ok single line: '2'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3564kb

input:

1 1 2 2
1 2 1

output:

-1

result:

ok single line: '-1'

Test #5:

score: 0
Accepted
time: 1ms
memory: 3660kb

input:

10 7 85 8
76 89 7
22 36 6
17 61 4
62 96 3
57 86 6
51 94 5
39 40 1
31 39 7
7 18 5
67 87 4

output:

-1

result:

ok single line: '-1'

Test #6:

score: 0
Accepted
time: 1ms
memory: 3820kb

input:

10 10 91 1
1 100 9
1 100 8
1 100 1
1 100 10
1 100 3
1 100 4
1 100 7
1 100 2
1 100 5
1 100 6

output:

-1

result:

ok single line: '-1'

Test #7:

score: 0
Accepted
time: 1ms
memory: 3564kb

input:

10 3 99994 12436
14053 20692 1
20693 72913 1
1 14052 1
36226 100000 3
1 5048 2
1 688 3
70945 100000 2
5049 70944 2
72914 100000 1
689 36225 3

output:

-1

result:

ok single line: '-1'

Test #8:

score: 0
Accepted
time: 1ms
memory: 3580kb

input:

10 7 67853 3238
27043 44174 4
69150 89334 2
65082 73038 1
18887 34795 6
49387 76379 7
63582 76311 4
70393 78225 6
52699 81352 5
79076 90480 6
46727 51948 4

output:

0

result:

ok single line: '0'

Test #9:

score: 0
Accepted
time: 1ms
memory: 3664kb

input:

10 10 99991 6429
1 100000 6
1 100000 3
1 100000 7
1 100000 5
1 100000 8
1 100000 10
1 100000 4
1 100000 2
1 100000 1
1 100000 9

output:

-1

result:

ok single line: '-1'

Test #10:

score: 0
Accepted
time: 1ms
memory: 3884kb

input:

100 1 21964 5206
64259 64277 1
11354 11400 1
59905 60165 1
65204 65413 1
56524 57796 1
29791 30173 1
70653 71198 1
93335 93420 1
24188 25637 1
23637 23656 1
92593 92888 1
27676 27903 1
98254 98347 1
25867 26233 1
98617 98915 1
81799 82593 1
65830 65833 1
90917 91368 1
85545 85824 1
12460 12801 1
949...

output:

0

result:

ok single line: '0'

Test #11:

score: -100
Wrong Answer
time: 4ms
memory: 3656kb

input:

100 10 99993 807
44838 54767 6
34286 35646 5
57765 65793 2
28816 31503 6
17001 28771 10
34266 37715 8
1 701 3
96466 96997 2
72476 96463 10
17723 31765 4
36014 80395 4
81278 100000 9
35980 50283 2
81069 90828 8
21774 51612 7
49735 52230 9
61622 83904 6
38580 44837 6
52288 85556 1
90564 95262 7
12874 ...

output:

9

result:

wrong answer 1st lines differ - expected: '6', found: '9'