QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#866164#9325. Random Permutationucup-team4744#WA 1ms5856kbC++233.6kb2025-01-22 13:16:332025-01-22 13:16:33

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
5
4 3 5 1 2
5
5 3 1 2 4
2
2 1
3
1 3 2

output:

8
7
2
4

result:

ok 4 number(s): "8 7 2 4"

Test #2:

score: 0
Accepted
time: 0ms
memory: 5856kb

input:

5
2
1 2
4
2 1 4 3
3
3 2 1
2
1 2
3
3 1 2

output:

2
5
4
2
3

result:

ok 5 number(s): "2 5 4 2 3"

Test #3:

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

input:

332
4
3 2 4 1
3
3 2 1
3
3 1 2
4
2 3 4 1
3
1 2 3
2
1 2
3
2 3 1
3
2 3 1
4
4 3 1 2
3
2 1 3
3
1 3 2
2
2 1
3
3 1 2
2
2 1
2
2 1
4
3 1 2 4
3
3 1 2
3
1 3 2
3
2 3 1
2
2 1
3
1 2 3
3
1 3 2
3
1 3 2
4
3 1 4 2
3
3 2 1
3
1 3 2
2
2 1
2
1 2
3
2 1 3
2
1 2
2
2 1
4
2 1 3 4
2
1 2
2
2 1
3
3 1 2
2
2 1
3
3 2 1
2
2 1
4
2 4 ...

output:

7
4
3
9
4
2
4
4
5
3
4
2
3
2
2
5
3
4
4
2
4
4
4
5
4
4
2
2
3
2
2
5
2
2
3
2
4
2
5
4
5
3
5
8
4
2
2
3
4
5
2
4
5
5
4
4
4
2
4
2
4
5
8
2
8
4
8
2
4
2
2
8
7
2
4
4
4
8
4
4
2
5
4
2
2
2
7
7
2
4
5
2
5
4
8
3
3
2
3
9
5
2
8
2
2
3
5
2
2
8
2
8
3
2
2
8
4
7
4
5
2
3
5
2
8
3
2
4
4
2
2
8
2
2
2
4
5
8
7
3
2
2
7
2
5
2
4
2
4
3
...

result:

wrong answer 4th numbers differ - expected: '8', found: '9'