Codeforces Round #569 (Div. 2) C - Valeriy and Deque(规律)

NoSuchKey