B. Gifts Fixing(贪婪思维) Codeforces Round #661 (Div. 3)

NoSuchKey