QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#805926#9865. Dollsucup-team4125WA 5ms5912kbC++171.1kb2024-12-08 19:45:202024-12-08 19:45:21

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

3
3
2
3
3
3
4
4

result:

ok 8 numbers

Test #2:

score: -100
Wrong Answer
time: 5ms
memory: 3608kb

input:

5913
1
1
2
1 2
2
2 1
3
1 2 3
3
1 3 2
3
2 1 3
3
2 3 1
3
3 1 2
3
3 2 1
4
1 2 3 4
4
1 2 4 3
4
1 3 2 4
4
1 3 4 2
4
1 4 2 3
4
1 4 3 2
4
2 1 3 4
4
2 1 4 3
4
2 3 1 4
4
2 3 4 1
4
2 4 1 3
4
2 4 3 1
4
3 1 2 4
4
3 1 4 2
4
3 2 1 4
4
3 2 4 1
4
3 4 1 2
4
3 4 2 1
4
4 1 2 3
4
4 1 3 2
4
4 2 1 3
4
4 2 3 1
4
4 3 1 2
4...

output:

0
1
1
1
2
2
2
2
1
2
3
2
3
3
2
2
3
3
2
2
3
3
2
2
3
3
3
2
3
3
2
2
2
2
3
3
3
4
3
3
3
3
3
3
4
3
3
3
3
4
4
3
4
3
3
3
3
3
3
3
3
4
3
4
4
3
3
3
4
3
3
4
3
3
4
3
3
3
4
3
3
4
4
3
3
3
3
2
3
4
3
3
4
4
3
4
4
3
2
3
3
3
3
4
4
3
3
4
3
3
3
4
3
3
4
3
3
2
3
3
3
4
4
3
4
4
3
3
3
3
3
3
3
4
3
3
4
3
3
3
3
2
3
3
3
3
3
2
3
3
...

result:

wrong answer 4th numbers differ - expected: '2', found: '1'