正文
增加 4 行删除 4 行
30 行未改动31323334353637383934 行未改动74757677787980818220 行未改动10310410510610710810911011128 行未改动14014114214314414514614730 行未改动bool f=0;while(!isdigit(ch)){if(ch=='-') f=1;ch=getchar();}while(isdigit(ch)) x=(x<<1)+(x<<3)+(ch^48),ch=getchar();if(f) x=-x;return x;}template<typename T> inline void write(T x){if(x<0) pc('-'),x=-x;34 行未改动}};using namespace IO;using namespace math;const int N=2010;const double pi=acos(-1);#define PII pair<int,int>#define x first20 行未改动if(up.size()==n) fo(i,(n==2),n-1) add(up[i],up[(i+1)%n]);else{set<PII> s;for(auto i:up) s.insert(i);vector<pair<double,PII> > v;PII tmp;for(auto i:now) if(!s.count(i)){tmp=i;break;}for(auto i:now) if(i!=tmp)28 行未改动for(auto [x,y]:ans) write(x),pc(' '),write(y),puts("");}}signed main(){gza::main();}```30 行未改动31323334353637383934 行未改动74757677787980818220 行未改动10310410510610710810911011128 行未改动14014114214314414514614730 行未改动bool f=0;while(!isdigit(ch)){if(ch=='-') f=1;ch=getchar();}while(isdigit(ch)) x=(x<<1)+(x<<3)+(ch^48),ch=getchar();if(f) x=-x;return x;}template<typename T> inline void write(T x){if(x<0) pc('-'),x=-x;34 行未改动}};using namespace IO;using namespace math;const int N=2010;const double pi=acos(-1);#define PII pair<int,int>#define x first20 行未改动if(up.size()==n) fo(i,(n==2),n-1) add(up[i],up[(i+1)%n]);else{set<PII> s;for(auto i:up) s.insert(i);vector<pair<double,PII> > v;PII tmp;for(auto i:now) if(!s.count(i)){tmp=i;break;}for(auto i:now) if(i!=tmp)28 行未改动for(auto [x,y]:ans) write(x),pc(' '),write(y),puts("");}}signed main(){gza::main();}```