#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]; if (n == 1) { cout << a[0] << " 0" << endl; return 0; } vector c = a; sort(c.begin(), c.end()); vector t = {c[n/2-1], c[n/2-1]+c[n/2], c[n/2]}; double ans = 0; long sum = INT_MAX; for (auto i : t) { double tmp_sum = 0; for (auto j=0; j