版本比较
题解:CF607E Cross Sum
正文
增加 3 行删除 3 行
70 行未改动717273747575767778798081818283848525 行未改动111112113114115115116117118119104 行未改动全部展开70 行未改动#define pb emplace_backusing namespace std;#define double long double#define fi first#define se second #define se secondconst double eps = 1e-9;#define x0 x_0#define y0 y_0int n, m, k; double x0, y0;double a[50010], b[50010], c[50010], lsh[100010];#define pdd pair < double, double > #define pdd pair < double, double >pdd tmp[50010];struct BIT { int n; vi v;25 行未改动 p2x = (-a * c - sqrt(delta)) / (sa + sb); p1y = -(a * p1x + c) / b; p2y = -(a * p2x + c) / b; } double l = atan2(p1x, p1y), r = atan2(p2x, p2y); double l = atan2(p1x, p1y), r = atan2(p2x, p2y); if(l > r) swap(l, r); return make_pair(l, r);}104 行未改动全部展开