Codeforce - 1040B - Shashlik Cooking(思维)

NoSuchKey