Codeforce 1469C. Building a Fence(思维)

NoSuchKey