考虑什么数需要更新位置?
先来考虑 nnn 为偶数的情况:mid=n/2mid = n/2mid=n/2
记 pos[x]pos[x]pos[x] 为数 xxx 在数组中的位置
小美是一位火车车厢调度员。
In following contests:
秋招模拟赛第二十四场|美团|2023.05.13
本题属于以下题库,请选择所需题库进行购买
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your CodeFun2000 universal account