Educational Codeforces Round 61 (Rated for Div. 2) E. Knapsack

NoSuchKey