結果

問題 No.394 ハーフパイプ(1)
ユーザー hanorverhanorver
提出日時 2016-07-15 22:23:54
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 496 bytes
コンパイル時間 649 ms
コンパイル使用メモリ 81,604 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-23 04:33:46
合計ジャッジ時間 1,151 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
	std::vector<int> score(6);

	for (int i = 0; i < 6; i++) {
		std::cin >> score[i];
	}

	std::sort(score.begin(), score.end());

	int total = std::accumulate(score.begin(), score.end(), 0);

	// 最低点と最高点を取り除く
	total -= score.front() + score.back();

	double ave = total / 4.0;

	std::cout << std::fixed << std::setprecision(10) << ave << std::endl;

	return 0;
}
0