QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#830811#9865. DollsqiuzxWA 7ms13532kbC++203.2kb2024-12-24 23:22:022024-12-24 23:22:06

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 7ms
memory: 13532kb

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
2
2
2
2
2
2
3
3
3
2
3
3
3
3
3
3
2
3
3
2
3
3
3
3
3
3
2
3
3
3
4
4
4
3
4
4
4
4
3
3
3
3
4
3
4
3
3
3
4
4
3
4
4
4
4
4
4
3
4
4
4
4
4
4
3
4
3
3
4
4
3
3
3
3
3
4
3
4
4
4
3
3
3
3
4
4
4
4
3
4
4
3
4
4
4
4
3
3
3
3
4
4
4
3
4
3
3
3
3
3
4
4
3
3
4
3
4
4
4
4
4
4
3
4
4
4
4
4
4
3
4
4
3
3
3
4
3
4
3
3
3
3
4
4
4
4
3
...

result:

wrong answer 13th numbers differ - expected: '3', found: '2'