【线段树||set遍历】Codeforces Round #207 (Div. 1) A. Knight Tournament

NoSuchKey