Codeforces Round #617 (Div. 3) D Fight with Monsters(贪心)

NoSuchKey