#include #include #include #include #include #include #include #include #include #include #include #include #define vll vector #define vvvl vector #define vvl vector> #define VV(a, b, c, d) vector>(a, vector(b, c)) #define VVV(a, b, c, d) vector(a, vvl(b, vll (c, d))); #define re(c, b) for(ll c=0;c> a >> b >> c >> d; c*=-1; ld dx = a - c; ld dy = b - d; //y = dy/dx * x + ad // ad = y - dy/dx * x ld ad = b - dy/dx * a; cout << fixed << setprecision(20) << ad << "\n"; }