QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#740422#9432. PermutationHuluoboWA 258ms3864kbC++141.5kb2024-11-13 09:52:282024-11-13 09:52:28

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

result:

ok Accepted

Test #2:

score: -100
Wrong Answer
time: 258ms
memory: 3864kb

input:

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

output:

0 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 175 370 17...

result:

wrong answer More than 6666 quries