Codeforces Round #508 (Div. 2) C Gambling(贪心)

NoSuchKey