QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#252274#962. Thanks to MikeMirzayanovT0m66WA 1ms4024kbC++20626b2023-11-15 17:30:332023-11-15 17:30:33

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4
3 1 2 4

output:

2
3 2 1 1 
3 1 2 1 

result:

ok OK

Test #2:

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

input:

6
6 5 4 3 2 1

output:

6
3 2 2 2 
4 1 2 2 1 
3 2 2 2 
4 1 2 2 1 
3 2 2 2 
4 1 2 2 1 

result:

ok OK

Test #3:

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

input:

1
1

output:

0

result:

ok OK

Test #4:

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

input:

10
3 8 7 4 6 2 9 10 1 5

output:

8
7 1 2 1 2 1 2 1 
7 1 1 2 1 1 2 2 
6 1 2 2 2 2 1 
7 1 1 2 2 2 1 1 
7 1 2 2 2 1 1 1 
6 2 2 2 2 1 1 
8 1 2 1 1 2 1 1 1 
9 2 1 1 1 1 1 1 1 1 

result:

wrong answer the permutation is not sorted