QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#370088#5305. Oscar is All You Needucup-team2880RE 1ms3680kbC++232.7kb2024-03-28 21:49:552024-03-28 21:49:56

詳細信息

Test #1:

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

input:

2
3
1 3 2
5
4 1 2 3 5

output:

0
4
1 3
2 2
1 3
1 1

result:

ok OK in maximum 4 operations

Test #2:

score: -100
Runtime Error

input:

120
3
1 3 2
3
3 2 1
3
2 3 1
5
1 2 3 4 5
12
11 9 2 8 3 10 6 1 4 7 5 12
36
24 9 7 3 31 15 13 1 4 33 11 29 16 23 2 25 35 21 32 14 6 18 17 26 28 8 27 22 20 36 10 19 34 12 30 5
4
4 2 3 1
5
3 5 2 1 4
4
1 2 4 3
10
5 7 4 9 6 8 1 3 10 2
5
3 1 5 2 4
5
3 5 1 2 4
3
3 1 2
13
3 1 2 11 12 13 8 6 5 4 10 9 7
16
12 8...

output:


result: