QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#742324#9432. PermutationHuluoboWA 284ms3608kbC++141.3kb2024-11-13 16:22:322024-11-13 16:22:33

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5
0
1
2
1
2
0
2

output:

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

result:

ok Accepted

Test #2:

score: -100
Wrong Answer
time: 284ms
memory: 3608kb

input:

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

output:

0 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 111 11...

result:

wrong answer More than 6666 quries