Codeforces #627 (Div. 3) D. Pair of Topics(双指针)

NoSuchKey