QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#741259#9432. PermutationidWA 55ms4144kbC++141.5kb2024-11-13 13:58:052024-11-13 13:58:07

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5
0
1
2
1
2
2
0

output:

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

result:

ok Accepted

Test #2:

score: -100
Wrong Answer
time: 55ms
memory: 3880kb

input:

1000
1
2
2
2
1
1
0
2
2
1
1
1
0
0
1
1
0
1
2
0
2
1
1
1
0
0
1
1
1
2
1
1
1
0
1
1
1
1
1
1
1
1
1
1
2
0
1
0
2
1
1
2
1
2
1
1
2
0
0
2
1
0
1
0
1
0
1
2
2
1
2
1
1
1
1
1
2
1
2
0
2
1
2
1
1
1
1
1
1
1
0
2
0
1
2
0
1
0
1
1
1
1
2
2
1
2
1
0
1
1
1
1
0
2
0
1
1
2
2
2
1
0
1
1
0
1
1
1
0
0
1
2
1
2
2
2
1
1
1
1
0
2
1
2
0
0
1
1...

output:

0 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 675 67...

result:

wrong answer format  Unexpected end of file - int32 expected