Codeforces Global Round 9 - C.Element Extermination (栈,贪心)

NoSuchKey