結果

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

ソースコード

diff #

#include<iostream>
#include<vector>
#include<algorithm>
#include<stdio.h>
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];
	}
	printf("%lf", sum / 4);
	return 0;

}
0