Codeforces448 C. Painting Fence(分治)

NoSuchKey