#include using namespace std; /////////////////// メイン /////////////////// int main () { //////////////////// 入力 //////////////////// int n; cin >> n; deque a(n); for (int i=0; i> a.at(i); } //////////////// 出力変数定義 //////////////// double result = 0; //////////////////// 処理 //////////////////// sort(a.begin(),a.end()); while (a.size()>2) { a.pop_front(); a.pop_back(); } if (a.size()==1) result = a.at(0); else result = (a.at(0)+a.at(1))/2.0; //////////////////// 出力 //////////////////// cout << result << endl; //////////////////// 終了 //////////////////// return 0; }