版本比较
P3108 [USACO14OPEN] Cow Optics G 题解
正文
增加 1 行删除 1 行
205 行未改动全部展开20620720820921021121221321459 行未改动205 行未改动全部展开for(auto xtq:scan){while(t<vdis.size()&&vdis[t].first<xtq.first.first){if(vdis[t].second.first<=vdis[t].second.second) cnt+=query(vdis[t].second.second)-query(vdis[t].second.first-1);t++;}update(xtq.first.second,xtq.second);}59 行未改动205 行未改动全部展开20620720820921021121221321459 行未改动205 行未改动全部展开for(auto xtq:scan){while(t<vdis.size()&&vdis[t].first<xtq.first.first){if(vdis[t].second.first+1<=vdis[t].second.second-1) cnt+=query(vdis[t].second.second-1)-query(vdis[t].second.first);//开区间(不统计镜子上的交点)t++;}update(xtq.first.second,xtq.second);}59 行未改动