[dp]Educational Codeforces Round 12 C. Simple Strings

NoSuchKey