Codeforces Round #445 C. Petya and Catacombs(思维)

NoSuchKey