Rosetta Problems

辞書順最小の数

https://atcoder.jp/contests/nikkei2019-ex/tasks/nikkei2019ex_d