Codeforces Round #576 (Div. 1) E. Rectangle Painting 2

NoSuchKey