QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#216040#5305. Oscar is All You Needucup-team1882#WA 1ms4320kbC++142.2kb2023-10-15 15:22:432023-10-15 15:22:44

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
3
1 3 2
5
4 1 2 3 5

output:

0
9
2 1
2 2
2 1
2 2
1 1
2 1
1 1
1 1
2 1

result:

ok OK in maximum 9 operations

Test #2:

score: 0
Accepted
time: 1ms
memory: 4244kb

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:

0
1
1 1
1
1 1
8
1 1
2 1
1 1
2 1
1 1
2 1
1 1
2 1
23
2 1
2 2
3 1
2 3
6 1
2 6
7 1
2 7
4 1
2 4
5 1
2 5
2 1
2 2
1 1
2 1
1 1
2 1
1 1
2 1
1 1
1 1
2 1
71
14 1
2 14
3 1
2 3
7 1
2 7
32 1
2 32
17 1
2 17
2 1
2 2
20 1
2 20
1 1
2 1
23 1
2 23
6 1
2 6
24 1
2 24
3 1
2 3
12 1
2 12
2 1
2 2
5 1
2 5
11 1
2 11
10 1
2 10
...

result:

ok OK in maximum 1 operations

Test #3:

score: -100
Wrong Answer
time: 1ms
memory: 4320kb

input:

120
8
1 4 5 2 6 7 3 8
15
3 8 13 15 6 9 4 11 5 2 10 14 12 7 1
3
2 3 1
8
5 8 3 4 2 1 6 7
4
2 4 3 1
8
2 5 7 4 1 8 6 3
5
3 4 2 1 5
5
1 4 5 3 2
21
8 16 7 18 15 20 17 19 9 11 14 2 3 21 6 10 13 4 12 5 1
8
7 1 8 4 5 3 6 2
3
3 1 2
3
3 2 1
6
4 1 6 3 2 5
7
6 7 5 4 3 2 1
21
4 6 9 10 18 3 19 2 16 13 5 12 21 15 1...

output:

14
3 1
2 3
5 1
2 5
1 1
2 1
1 1
2 1
1 1
2 1
1 1
2 1
1 1
2 1
26
1 5
10 1
2 10
11 1
2 11
8 1
2 8
3 1
2 3
4 1
2 4
6 1
2 6
3 1
2 3
1 1
5 1
2 5
2 1
2 2
2 1
2 2
1 1
2 1
1 1
2 1
1
1 1
15
4 1
2 4
2 1
2 2
2 1
2 2
2 1
2 2
1 1
2 1
2 2
2 1
2 2
1 1
2 1
6
1 2
1 2
1 1
1 2
1 1
2 1
13
2 1
1 1
2 1
2 2
2 1
2 2
1 1
3 1
...

result:

wrong answer Jury have smaller lexicographical order