QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#740819#9432. PermutationHuluoboTL 0ms5840kbC++141.9kb2024-11-13 11:41:002024-11-13 11:41:00

详细

Test #1:

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

input:

5
1
1
0
2
1
2
3
4
3

output:

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

result:

ok Accepted

Test #2:

score: -100
Time Limit Exceeded

input:

1000
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
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
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
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
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
1
1
1
1
1
1
1
1...

output:

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

result: