#P1288. 第3题-火车调度
第3题-火车调度
Related
In following contests:
小美是一位火车车厢调度员。
考虑什么数需要更新位置?
先来考虑 n 为偶数的情况:mid=n/2
记 pos[x] 为数 x 在数组中的位置
In following contests: