QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#741217#9432. PermutationHuluoboRE 0ms4100kbC++141.5kb2024-11-13 13:49:512024-11-13 13:49:51

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 4100kb

input:

5
0
1
2
2
1
2
0

output:

0 5 5 5 2 2 0 3 3 3 4 4 0 4 4 4 1 1 0 4 4 2 2 2 0 3 3 4 4 4 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
Runtime Error

input:

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

output:

0 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 393 39...

result: