【CodeForces316E3】Summer Homework(线段树+数论)

NoSuchKey