Educational Codeforces Round 80 (Rated for Div. 2)C(DP)

NoSuchKey