C. Queen Codeforces Round #549 (Div. 2) (搜索)

NoSuchKey