#include #include #include #include #include #include #include #include #include #include #include using namespace std; struct aaa{aaa(){cin.tie(nullptr); ios::sync_with_stdio(false); cout<ostream &operator<<(ostream &o,const vector&v){o<<"{";for(int i=0;i<(int)v.size();i++)o<<(i>0?", ":"")<> n; vector a(n, 0); vector b(n, 0); for (int i=0; i> a[i]; for (int i=0; i> b[i]; double l = 0; double r = INT_MAX; double pre = LONG_MAX; for (int i=0; i<100; i++) { double ll = (l+l+r) / 3; double rr = (l+r+r) / 3; double suml = 0; double sumr = 0; for (int j=0; j