Codeforces 85 D-Sum of Medians 【线段树】

NoSuchKey