Rosetta Problems

最小新整数

https://www.acwing.com/problem/content/5956