#include #define MAXN 100001 #define INF -1000000001 using namespace std; int a, b, c, d, n, sz, needed; double dist; struct Line { double a, b, c; } arr[MAXN]; double yy[MAXN]; unordered_map > mp; void read() { freopen("intersection.in", "r", stdin); freopen("intersection.out", "w", stdout); ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cin>>n; needed = n / 4; for(int i = 0; i < n; i ++) { cin>>a>>b>>c>>d; arr[i].a = (d - b); arr[i].b = (a - c); arr[i].c = -(arr[i].a * a + arr[i].b * b); } /*cout< lastDist) { return x; } lastDist = dist; x += 100000; //cout<second).size() >= needed) { ansInd = it->first; break; } } cout<