版本比较
集训做题日记
正文
增加 2 行删除 2 行
106 行未改动全部展开107108109110111111112113114115581 行未改动全部展开69769869970070170170270370470548 行未改动106 行未改动全部展开 } return cnt;}bool f=1;void CM(){ void CM(){ int tmp=ans; double T=1e4; while(T>=1e-5){ if(tmp>=(m+1)/2){f=0;break;}581 行未改动全部展开 sort(xs.begin(),xs.end()); ll stx=xs[0].X,edx=xs[0].Y; for(int j=1;j<(int)xs.size();j++){ if(xs[j].X<=edx+1)edx=max(edx,xs[j].Y); else{ else{ merge.emplace_back(stx,edx); stx=xs[j].X,edx=xs[j].Y; } }48 行未改动