#abc301b. [abc301_b] Fill the Gaps

[abc301_b] Fill the Gaps

给你一个长度为 nn 的数列,保证任意相邻的两个数不相等。尽可能多的插入一些数,使得 aia_iaja_j 间的这个数列具有单调性,最后输出插入后的数组。