結果

問題 No.394 ハーフパイプ(1)
ユーザー Eclair1015
提出日時 2018-06-01 20:38:36
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 359 bytes
コンパイル時間 665 ms
コンパイル使用メモリ 75,508 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-30 08:55:31
合計ジャッジ時間 1,213 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main() {
	vector<double> score(6);
	double sum=0;
	
	for (int i = 0; i < 6; i++) {
		cin >> score[i];
	}
	sort(score.begin(),score.end());
	score.pop_back();
	score.erase(score.begin()+0);


	for (int i = 0; i < 4 ; i++) {
		sum += score[i];
	}
	cout << sum / 4.0;
	return 0;

}
0