Codeforces Round #543 (Div. 2) D 双指针 + 模拟

NoSuchKey