QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#405156#5650. Beppa and SwerChatGuanYunchangWA 6ms7700kbC++20675b2024-05-05 12:22:342024-05-05 12:22:36

詳細信息

Test #1:

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

input:

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

output:

2
0
4
0

result:

ok 4 lines

Test #2:

score: -100
Wrong Answer
time: 6ms
memory: 7700kb

input:

10000
2
2 1
2 1
2
2 1
1 2
3
3 1 2
3 1 2
3
2 3 1
2 1 3
3
1 3 2
3 1 2
3
1 2 3
3 1 2
3
2 3 1
3 1 2
3
3 2 1
1 2 3
4
3 2 4 1
3 2 4 1
4
1 4 2 3
1 4 3 2
4
4 2 3 1
4 3 2 1
4
4 1 2 3
4 3 1 2
4
2 1 3 4
2 3 4 1
4
3 1 2 4
3 4 2 1
4
3 4 2 1
4 3 2 1
4
3 1 4 2
1 3 2 4
4
2 4 1 3
1 2 4 3
4
4 1 3 2
2 4 1 3
4
3 1 4 2
...

output:

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

result:

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