Rosetta Problems

最大获利

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