QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#44555#4623. Matryoshka DollZhangYiDeAC ✓1449ms53388kbJava111.2kb2022-08-19 05:49:322022-08-19 05:49:35

详细

Test #1:

score: 100
Accepted
time: 1449ms
memory: 53388kb

input:

20
4 3 2
1 2 3 4
4 2 1
1 1 2 2
10 3 5
7 20 27 27 34 36 40 56 63 98
10 5 10
5 6 11 20 34 39 42 57 86 99
100 2 4
61 139 210 338 426 591 614 637 658 678 699 1002 1015 1162 1424 1433 1502 1756 1994 2073 2164 2189 2258 2305 2460 2464 2497 2507 2512 2526 2557 2742 2794 2809 3060 3075 3201 3226 3380 3576 3...

output:

3
2
2852
10554
719747106
690165012
206258543
359242369
612315029
205154325
247697612
404757277
1
927604200
0
366237347
948502315
1
119095265
1

result:

ok 20 lines