QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#740417#9432. PermutationHuluoboWA 275ms3912kbC++141.5kb2024-11-13 09:51:022024-11-13 09:51:11

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

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

result:

ok Accepted

Test #2:

score: -100
Wrong Answer
time: 275ms
memory: 3912kb

input:

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

output:

0 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 938 418 93...

result:

wrong answer More than 6666 quries