codeforces 508E Arthur and Brackets(贪心)

NoSuchKey