Educational Codeforces Round 107 (Rated for Div. 2) D. Min Cost String

NoSuchKey