Rosetta Problems

天才的记忆

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