QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#79624#2887. 区间矩阵乘法QiulyML 2ms11556kbC++141.3kb2023-02-20 17:02:532023-02-20 17:02:57

详细

Test #1:

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

input:

8
1 2 2 2 2 2 1 1
2
2 2 2
1 3 7

output:

32
2

result:

ok 2 lines

Test #2:

score: -100
Memory Limit Exceeded

input:

200000
110569 155 159393 154631 169597 134901 75060 60085 189794 169502 10184 170809 170894 5697 83892 99814 97985 11604 39943 171446 77088 44463 60432 121559 54578 115592 151722 115322 147103 126168 55464 42044 181426 196809 58680 173065 136429 76030 109558 78475 161094 46875 1564 177386 108053 828...

output:


result: