Mex Tower

· · 题解

显然答案最多是 2

所以我们考虑构造。

观察得由 n112n0。组成的序列操作后为 n1n0

并且 n0n 个组成的序列操作后为 n-1112n-10

按以上方法构造即可,本题存在多解。