//树状数组 OR set +lower_bound D. Distinct Characters Queries Codeforces Round #590 (Div. 3)

NoSuchKey