Rosetta Problems

贪婪的送礼者

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