QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#522025#6610. Forged in the BarrensHuangHanShengRE 2ms5772kbC++202.7kb2024-08-16 17:37:002024-08-16 17:37:02

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 3632kb

input:

5
1 2 3 4 5

output:

4
3
2
1
0

result:

ok 5 number(s): "4 3 2 1 0"

Test #2:

score: 0
Accepted
time: 2ms
memory: 3680kb

input:

5
1 2 1 2 1

output:

1
2
2
1
0

result:

ok 5 number(s): "1 2 2 1 0"

Test #3:

score: 0
Accepted
time: 2ms
memory: 5652kb

input:

6
1 1 4 5 1 4

output:

4
7
7
7
4
0

result:

ok 6 numbers

Test #4:

score: 0
Accepted
time: 0ms
memory: 5740kb

input:

6
1 9 1 9 8 1

output:

8
16
23
16
8
0

result:

ok 6 numbers

Test #5:

score: 0
Accepted
time: 0ms
memory: 3736kb

input:

12
1 1 4 5 1 4 1 9 1 9 8 1

output:

8
16
23
27
30
30
30
27
23
16
8
0

result:

ok 12 numbers

Test #6:

score: 0
Accepted
time: 2ms
memory: 5772kb

input:

1
882082994

output:

0

result:

ok 1 number(s): "0"

Test #7:

score: -100
Runtime Error

input:

200000
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:


result: