Codeforces Round #503 (by SIS, Div. 2) C. Elections(枚举+贪心)

NoSuchKey