QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#789018#8056. Travel 2ucup-team2866ML 1ms3768kbC++201.9kb2024-11-27 19:04:352024-11-27 19:04:36

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
1 1
2 1
1 1
2 1
Correct
1 3
2 2
1 3
2 2
4 2
1 3
3 1
1 3
3 1
1 3
4 2
1 3
Correct

output:

> 1
> 1
> 1
! 1 2 
> 1
> 1
> 1
> 2
> 1
> 2
> 1
> 2
> 1
> 3
> 1
! 1 2 1 3 1 4 2 4 3 4 

result:

ok correct! (2 test cases)

Test #2:

score: -100
Memory Limit Exceeded

input:

1000
1 9
2 7
1 9
2 7
3 9
1 9
3 9
4 9
7 7
1 9
3 9
9 8
5 8
1 9
3 9
9 8
1 9
3 9
9 8
5 8
2 7
5 8
9 8
7 7
6 9
1 9
3 9
9 8
6 9
5 8
3 9
10 6
1 9
3 9
9 8
2 7
5 8
6 9
3 9
8 8
1 9
3 9
9 8
2 7
5 8
6 9
9 8
6 9
9 8
4 9
1 9
3 9
9 8
2 7
5 8
6 9
9 8
4 9
6 9
4 9
6 9
7 7

output:

> 1
> 1
> 1
> 2
> 1
> 2
> 2
> 3
> 1
> 2
> 3
> 3
> 1
> 2
> 3
> 1
> 2
> 3
> 3
> 4
> 5
> 3
> 6
> 7
> 1
> 2
> 3
> 7
> 4
> 5
> 6
> 1
> 2
> 3
> 4
> 5
> 6
> 6
> 7
> 1
> 2
> 3
> 4
> 5
> 6
> 7
> 7
> 7
> 8
> 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 8
> 9
> 8
> 8
> 9

result: