結果

問題 No.394 ハーフパイプ(1)
ユーザー himo
提出日時 2019-09-28 20:44:43
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 292 bytes
コンパイル時間 1,305 ms
コンパイル使用メモリ 161,748 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-03 04:14:05
合計ジャッジ時間 1,926 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main() {
vector<double >a(6);
double che =0;
for(int i=0;i<6;i++){
    cin >> a.at(i);
    che+=a.at(i);
}
sort(a.begin(),a.end());
che=che-a.at(0)-a.at(5);
double z=4;
double ans =che/z;
cout <<fixed <<setprecision(2);
cout <<ans <<endl;
}

0