題目連結如下:https://tpmso.org/toi/wp-content/uploads/question/202308-OFFLINE/Guard.pdf
5 5 1 3 2 3 2 4 2 5 4 5
3
4 6 1 2 1 3 1 4 2 3 2 4 3 4
3 2 1 2 2 3
1