如果你 90pts 并 WA on#10
查看原帖
如果你 90pts 并 WA on#10
584977
Susking楼主2022/7/21 17:07

有可能是查询函数出了错误orz,比如

if(k1==k2){
	pos=lower_bound(h+L,h+L+(R-L+1),W-kuai[k1].lazy)-h;
	……
}

写成

if(k1==k2){
	pos=lower_bound(h+kuai[i].l, h+kuai[i].l+kuai[i].tot, W-kuai[i].lazy)-h;
	……
}

(并且数据好水)

2022/7/21 17:07
加载中...