Personal feeling a little bit pitAdd tags are permanentlyThe tag used for set is passed#include #include#include#include#defineLson o#defineRson (o#defineLS o#defineRS (ousing namespacestd;Const intn=1e4,inf=1e9;intminv[n2],maxv[n2],sumv[n2];intaddv[n2],setv[n2];intql,qr,p,v;// PointintQuerymin (intOintLintR) { intm=l+ (r-l) >>1), ans=INF; if(QLreturnMinv[o]; if(qlmin (ans,querymin (Lson)); if(m+1min (ans,querymin (Rson)); returnans;}voidChangeintOintLintR) { intm=l+ (r-l) >>1); if(l==r) M
afternoon, just beginning to set COL to bool variable, the result ... T, has not found the error to ... Pain... ) code is as follows:#include #include#include#include#defineLson l,m,po*2#defineRson m+1,r,po*2+1using namespacestd;Const intn=8000*2;intcol[8008*2*4];BOOLmap1[8008][8008];voidPushdown (intPO) { if(col[po]>=0) {Col[po*2]=col[po*2+1]=Col[po]; COL[PO]=-1; }}voidUpdateintUlinturintUtintLintRintPO) { if(ulR) {Col[po]=ut; return; } pushdown (PO); intM= (L+R)/2; if(ulM) Update (Ul
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.