CodeForces - 115E Linear Kingdom Races (线段树优化DP)*

NoSuchKey