Codeforces1485 B. Replace and Keep Sorted(前缀和)

NoSuchKey