Codeforces 429B Working out (线性DP)

NoSuchKey