Educational Codeforces Round 85 C. Circle of Monsters(贪心)

NoSuchKey