題目連結如下:https://msqrt1024.github.io/TOIproblems/潛力組/202411/p2/Rail (zh_TW).pdf
7 6 0 1 1 2 2 0 1 3 4 5 5 6
1 1
6 6 0 1 1 2 2 0 3 4 4 5 5 3
2 0
2 1 0 1
0 1
12 10 2 1 2 3 1 0 0 4 8 10 10 7 7 11 9 10 6 8 5 7
0 2