Codeforces Round #413 (Div1 + Div. 2) C. Fountains(树状数组维护最大值)

NoSuchKey