CodeForces Round#524C -Masha and two friends (区间分割)

NoSuchKey