結果

問題 No.394 ハーフパイプ(1)
ユーザー 一ノ瀬卯月
提出日時 2019-04-01 13:52:52
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 356 bytes
コンパイル時間 752 ms
コンパイル使用メモリ 71,400 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-24 23:58:04
合計ジャッジ時間 1,271 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <iomanip>
using namespace std;
int main()
{
	vector<int> S;
	int a = 0;
	S.resize(6);
	cin >> S[0] >> S[1] >> S[2] >> S[3] >> S[4] >> S[5];
	sort(S.begin(), S.end());
	for (int i = 1; i < 5; i++) a += S[i];
	cout << fixed;
	cout << setprecision(2) << (double)(a / 4) << endl;
	return 0;
}
0