Rosetta Problems

最小化草堆

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