結果

問題 No.394 ハーフパイプ(1)
ユーザー 👑 obakyan
提出日時 2019-03-21 23:22:37
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 461 bytes
コンパイル時間 1,157 ms
コンパイル使用メモリ 78,520 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-19 02:06:17
合計ジャッジ時間 1,625 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <iomanip>
#include <deque>

int main()
{
    std::vector<int> a;
    int d;
    for(int i = 0; i < 6; i++){
        std::cin >> d;
        a.push_back(d);
    }
    std::sort(a.begin(), a.end());
    int sum = a[1] + a[2] + a[3] + a[4];
    
    std::cout << std::fixed << std::setprecision(2) << sum / 4.0 << std::endl;
    return 0;
}
0