Codeforces Round #503 (by SIS, Div. 1) B. The hat (交互式题目,二分)

NoSuchKey