https://www.luogu.com.cn/record/72834512
将第十五行的
if (prta == prtb) return (get<1>(A) < get<1>(B)) ^ (prta & 1);
的后半段删去/或者改成三目运算符,就能过了。
if (prta == prtb)
return (bool(prta & 1)) ? (get<1>(A) > get<1>(B)) : (get<1>(A) < get<1>(B));
if (prta == prtb) return get<1>(A) < get<1>(B);
但在别的莫队题目中都未出现这种问题。
求问,为什么会RE。