Codeforces Round #410 (Div. 2) D. Mike and distribution (贪心)

NoSuchKey