Rosetta Problems

大牌小牌

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