cf/mirror

Jeopardy!

CF
413C1400· specialist1s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
4 1
1 3 7 5
3
Output
18
Sample 2of 3
Input
3 2
10 3 8
2 3
Output
40
Sample 3of 3
Input
2 2
100 200
1 2
Output
400
413C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)