QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#175083#5681. Caravan Trip PlansZhangYiDeRE 1ms3508kbC++14792b2023-09-10 16:00:272023-09-10 16:00:27

詳細信息

Test #1:

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

input:

5 1
2 3 5 7 11
3 7

output:

10

result:

ok single line: '10'

Test #2:

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

input:

8 3
2 3 5 7 11 13 17 19
3 7
5 15
8 24

output:

10
126
1287

result:

ok 3 lines

Test #3:

score: -100
Runtime Error

input:

15 5
2 3 5 7 11 13 17 19 23 29 31 37 41 43 47
7 23
10 35
4 14
5 23
15 56

output:

1716

result: