Educational Codeforces Round 9 D - Longest Subsequence

NoSuchKey