CodeForces 69 E.Subsegments(权值线段树)

NoSuchKey