結果

問題 No.394 ハーフパイプ(1)
ユーザー umaumax
提出日時 2017-05-01 18:06:22
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 368 bytes
コンパイル時間 690 ms
コンパイル使用メモリ 71,464 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-14 01:57:19
合計ジャッジ時間 1,162 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <iomanip>
#include <iostream>
#include <vector>

using namespace std;

int main(int argc, const char* argv[])
{
	vector<int> Ss(6);
	for (auto&& s : Ss) {
		cin >> s;
	}
	sort(Ss.begin(), Ss.end());
	double sum = 0.0;
	for (int i = 0; i < 6 - 2; i++) sum += Ss[i + 1];
	cout << fixed << setprecision(2) << sum / 4.0 << endl;
	return 0;
}
0