Rosetta Problems

奇怪的数系

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