Codeforces 1037 F. Maximum Reduction —— 单调栈

NoSuchKey