【Codeforces Round #515 (Div. 3) B. Heaters】dp

NoSuchKey