題目連結如下:https://tpmso.org/toi/wp-content/uploads/question/202208-OFFLINE/Adventure.pdf
5 1 2 3 2 1 7
4
5 1 2 3 2 1 4
2
6 1 2 3 4 5 6 15
6 1 2 3 4 5 6 99
10 3 9 7 5 4 3 8 2 1 1 13
7
8 1 2 4 2 6 8 4 5 7
1
6 1 2 1 1 1 1 10
3
10 1 7 7 7 9 7 13 7 17 19 1000
8