Codeforces Round #524 (Div. 2) B. Margarite and the best present 规律题

NoSuchKey