結果

問題 No.394 ハーフパイプ(1)
ユーザー Eclair1015
提出日時 2018-06-01 20:41:56
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 385 bytes
コンパイル時間 655 ms
コンパイル使用メモリ 74,452 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 08:55:33
合計ジャッジ時間 1,167 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 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("%0.2lf", sum / 4);
	return 0;

}
0