QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#741883#9432. PermutationHuluoboRE 1ms3624kbC++171.6kb2024-11-13 15:25:082024-11-13 15:25:28

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5
2
1
2
1
2
2
2

output:

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

result:

ok Accepted

Test #2:

score: -100
Runtime Error

input:

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

output:

0 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 562 56...

result: