rt
求大佬传授,左端点相同时,是按照右端点升降序还是右端点所在块编号升降序排序呢?
也就是问,下面这两种写法哪个对啊?
inline bool operator < (const Node a,const Node b){
return bel[a.l]^bel[b.l] ? bel[a.l]<bel[b.l] : (bel[a.l]&1 ? a.r<b.r :a.r>b.r);
}
inline bool operator < (const Node a,const Node b){
return bel[a.l]^bel[b.l] ? bel[a.l]<bel[b.l] : bel[a.r]<bel[b.r];
}