Codeforces 877(442 Div.2) C. Slava and tanks(思维)

NoSuchKey