Codeforces Round #644 (Div. 3) G. A/B Matrix

NoSuchKey