Rosetta Problems

見える数

https://atcoder.jp/contests/chokudai_S001/tasks/chokudai_S001_f