QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#122855#1808. Efficient PartitioningZhangYiDeML 1ms3700kbC++172.1kb2023-07-11 13:08:142023-07-11 13:08:18

詳細信息

Test #1:

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

input:

2
1 -1
-1 4
1 -2

output:

1

result:

ok answer is '1'

Test #2:

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

input:

1
1000000000
1000000000
1000000000

output:

3000000000

result:

ok answer is '3000000000'

Test #3:

score: -100
Memory Limit Exceeded

input:

11
-323225375 -897098227 -795978453 501188072 409939326 -362890219 969123048 962633819 252457646 694824070 -406990840
-696821643 -663750226 -570551722 670541392 172964990 399404695 -305728788 -157617655 -801518744 -328729631 -160335217
-465411342 -660775657 515997870 -34787742 628368976 84800619 -72...

output:


result: