Codeforces-Salem and Sticks(枚举+思维)

NoSuchKey