正文
增加 6 行删除 6 行
107 行未改动全部展开10810911011111211311411511686 行未改动20320420520620720820921021121221321421521621721821922022148 行未改动2702712722732742752762772788 行未改动287288289290291292293294295146 行未改动全部展开107 行未改动全部展开const int N = 3e5 + 10;int n;struct node {int a, b;double z; //a_i * x + b_i = 0时 x = zinline void init() {cin >> a >> b;z = a ? (- b * 1.0 / a) : 0;}86 行未改动const int N = 3e5 + 10;int n;struct node {int a, b;double z; //a_i * x + b_i = 0时 x = zinline void init() {cin >> a >> b;z = (a == 0) ? 0 : (- b * 1.0 / a);}inline double calc(double x) {return abs(a * 1.0 * x + b * 1.0);}inline bool operator < (const node& D) {return z < D.z;}} d[N];double curres, minres = 1e15 + 8;int s[N];signed main() {48 行未改动#include <cstring>#include <cstdio>#define R registerusing namespace std;const int N = 4e5 + 10;int n, head[N], tot, cnt;bool vis[N];struct node {int nxt, to;8 行未改动for(R int i = head[u]; i != 0; i = e[i].nxt) {R int v = e[i].to;if(v == fa) continue;dfs(v, u);if(!vis[v]) fl = 1;}if(u != 1 && fa != 1 && fl) {vis[u] = 1;for(R int i = head[u]; i != 0; i = e[i].nxt) {146 行未改动全部展开107 行未改动全部展开10810911011111211311411511686 行未改动20320420520620720820921021121221321421521621721821922022148 行未改动2702712722732742752762772788 行未改动287288289290291292293294295146 行未改动全部展开107 行未改动全部展开const int N = 3e5 + 10;int n;struct node {int a, b;double z; //a_i * x + b_i = 0时 x = zinline void init() {cin >> a >> b;z = a ? (- b * 1.0 / a) : 0;}86 行未改动const int N = 3e5 + 10;int n;struct node {int a, b;double z; //a_i * x + b_i = 0时 x = zinline void init() {cin >> a >> b;z = (a == 0) ? 0 : (- b * 1.0 / a);}inline double calc(double x) {return abs(a * 1.0 * x + b * 1.0);}inline bool operator < (const node& D) {return z < D.z;}} d[N];double curres, minres = 1e15 + 8;int s[N];signed main() {48 行未改动#include <cstring>#include <cstdio>#define R registerusing namespace std;const int N = 4e5 + 10;int n, head[N], tot, cnt;bool vis[N];struct node {int nxt, to;8 行未改动for(R int i = head[u]; i != 0; i = e[i].nxt) {R int v = e[i].to;if(v == fa) continue;dfs(v, u);if(!vis[v]) fl = 1;}if(u != 1 && fa != 1 && fl) {vis[u] = 1;for(R int i = head[u]; i != 0; i = e[i].nxt) {146 行未改动全部展开