Codeforces 487E Tourists [广义圆方树,树链剖分,线段树]

NoSuchKey