題目連結如下:https://tpmso.org/toi/wp-content/uploads/question/202308-OFFLINE/Jewel.pdf
3 7 10 3
1 2
3 14 14 7
-1
6 7 1 5 3 6 4
2 5
6 15 14 11 9 5 3