Codeforces Round #459 (Div. 2) C. The Monster(枚举+思维)

NoSuchKey