codeforces 965E Trie+multiset

NoSuchKey