codeforces #503 div 2 C Elections 【贪心+枚举】

NoSuchKey