Codeforces Round #613 (Div. 2) B. Just Eat It!(dp)

NoSuchKey