QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#670302#3043. Lexicographically Minimum WalkMaMengQiWA 9ms12300kbC++201.2kb2024-10-23 21:15:382024-10-23 21:15:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 3 1 3
1 2 1
2 3 7
1 3 5

output:

1 7 

result:

ok single line: '1 7 '

Test #2:

score: 0
Accepted
time: 9ms
memory: 11456kb

input:

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

output:

TOO LONG

result:

ok single line: 'TOO LONG'

Test #3:

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

input:

2 0 2 1

output:

IMPOSSIBLE

result:

ok single line: 'IMPOSSIBLE'

Test #4:

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

input:

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

output:

3 1 5 

result:

ok single line: '3 1 5 '

Test #5:

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

input:

2 1 2 1
2 1 7

output:

7 

result:

ok single line: '7 '

Test #6:

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

input:

2 2 1 2
1 2 2
2 1 1

output:

TOO LONG

result:

wrong answer 1st lines differ - expected: '2', found: 'TOO LONG'