#include using namespace std; /////////////////// メイン /////////////////// int main () { //////////////////// 入力 //////////////////// int n = 6; vector a(n); for (int i=0; i> a.at(i); } //////////////// 出力変数定義 //////////////// double result = 0; //////////////////// 処理 //////////////////// sort(a.begin(),a.end()); for (int i=1; i<5; i++) { result += a.at(i); } result /= 4; //////////////////// 出力 //////////////////// cout << fixed << setprecision(2) << result << endl; //////////////////// 終了 //////////////////// return 0; }