結果

問題 No.394 ハーフパイプ(1)
ユーザー sggkshio
提出日時 2016-11-08 00:22:26
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 534 bytes
コンパイル時間 732 ms
コンパイル使用メモリ 86,208 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-25 04:33:39
合計ジャッジ時間 1,508 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _USE_MATH_DEFINES
#include<stdio.h>
#include<string>
#include<iostream>
#include<cctype>
#include<cstdio>
#include<vector>
#include<stack>
#include<queue>
#include <algorithm>
#include<math.h>
#include<set>
#include<map>
#include<iomanip>

//#include<bits/stdc++.h>



using namespace std;




int main() {

	double a=0;
	vector<int>r;
	for(int i=0;i<6;i++){
		int x;
		cin>>x;
		r.push_back(x);
		a+=x;
	}
	sort(r.begin(),r.end());
	a-=r[0]+r[5];
	//cout<<a;
	cout<<fixed<< setprecision(2);
	cout<<a/4<<endl;
	return 0;
}


	
0