Codeforces Round #552 (Div. 3) F. Shovels Shop(dp)

NoSuchKey