正文
增加 2 行删除 2 行
9 行未改动10111213141516171832 行未改动5152535455565758594 行未改动9 行未改动double operator *(const pair<double, double> &a, const pair<double, double> &b) {return a.first * b.second - a.second * b.first;}double dist(pair<double, double> a, pair<double, double> b) {return sqrt((a.first - b.first) * (a.first - b.first)+ (a.second - b.second) * (a.second - b.second));}int n, m, tp, stk[N];bool used[N];32 行未改动stk[++ tp] = i;used[p[i].pos] = 1;}}for(int i = 1; i <= n + m; i ++)if((i <= n && !used[i]) || (i > n && used[i])) {cout << "NO";return 0;}4 行未改动9 行未改动10111213141516171832 行未改动5152535455565758594 行未改动9 行未改动double operator *(const pair<double, double> &a, const pair<double, double> &b) {return a.first * b.second - a.second * b.first;}double dist(pair<double, double> a, pair<double, double> b) {return sqrt((a.first - b.first) * (a.first - b.first)+ (a.second - b.second) * (a.second - b.second));}int n, m, tp, stk[N];bool used[N];32 行未改动stk[++ tp] = i;used[p[i].pos] = 1;}}for(int i = 1; i <= n + m; i ++)if((i <= n && !used[i]) || (i > n && used[i])) {cout << "NO";return 0;}4 行未改动