#4490. [JSCPC2022] C. Jump and Treasure

[JSCPC2022] C. Jump and Treasure

题目 题目

Samples

5 3 4
2 5 -6 -4 3
1
2
3
10
5
-6
10 6 8
5 4 -6 8 -11 5 -6 4 -7 3
1
2
4
6
8
10
29
24
12
5
4
Noob