QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#720623#9432. Permutationucup-team580#RE 1ms3640kbC++142.6kb2024-11-07 13:29:432024-11-07 13:29:43

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5
0
2
0
1
0
1
0
1
1
1
2

output:

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

result:

ok Accepted

Test #2:

score: -100
Runtime Error

input:

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

output:

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

result: