B. Binary Period(水、Educational Codeforces Round 86 (Rated for Div. 2))

NoSuchKey