版本比较
P4250 [SCOI2015] 小凸想跑步
正文
增加 5 行删除 5 行
51 行未改动525354555656575859596061626343 行未改动10710810911011111111211311411513 行未改动12913013113213313313413513613714 行未改动15215315415515615615715815916020 行未改动51 行未改动接下来就是欢乐的代码环节啦!!!
```#include<bits/stdc++.h>#define debug(x) cerr<<__LINE__<<" : "<<#x<<"="<<(x)<<endl #define debug(x) cerr<<__LINE__<<" : "<<#x<<"="<<(x)<<endl#define int long longusing namespace std;const double eps=1e-12; const double eps=1e-12;const int N=3e5+5;struct point{ double x,y; point(double x=0,double y=0):x(x),y(y){};43 行未改动};bool operator < (const Line &l,const Line &r){ return dcmp(l.pol-r.pol)<0||(dcmp(l.pol-r.pol)==0&&dcmp(cross(l.v,r.A-l.A)<0));
}point LineIns(const Line &l,const Line &r){ double a1=cross(r.v,l.A-r.A);13 行未改动 int pl=1,pr=0; for(int i=1;i<=tot;i++) { while(pr-pl>=1&&l[i].notleft(ins[pr]))pr--; while(pr-pl>=1&&l[i].notleft(ins[pl+1]))pl++; while(pr-pl>=1&&l[i].notleft(ins[pl+1]))pl++; hp[++pr]=l[i]; if(pr-pl>=1)ins[pr]=LineIns(hp[pr],hp[pr-1]); } while(pr-pl>=1&&hp[pl].notleft(ins[pr]))pr--;14 行未改动 } return area/2;}Line line[N],hp[N];point p[N],ins[N],lp[N],pp[N]; point p[N],ins[N],lp[N],pp[N];signed main(){ int n,tot=0,cnt; scanf("%lld",&n);20 行未改动