Codeforces Round #385 (Div. 1) B. Hongcow's Game(bitmask)

NoSuchKey