Codeforces Round #651 (Div. 2) E. Binary Subsequence Rotation(dp)

NoSuchKey