QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#741262#9432. PermutationidWA 57ms3968kbC++141.5kb2024-11-13 13:59:002024-11-13 13:59:02

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5
2
0
1
2
1
0
0

output:

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

result:

ok Accepted

Test #2:

score: -100
Wrong Answer
time: 57ms
memory: 3968kb

input:

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

output:

0 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 263 26...

result:

wrong answer format  Unexpected end of file - int32 expected