Rosetta Problems

数字游戏 II

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