Codeforces Round #539 (Div. 2) B. Sasha and Magnetic Machines(思维)

NoSuchKey