結果

問題 No.394 ハーフパイプ(1)
ユーザー ミドリムシ
提出日時 2017-10-14 00:25:06
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 245 bytes
コンパイル時間 562 ms
コンパイル使用メモリ 58,968 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-17 11:54:51
合計ジャッジ時間 1,057 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
using namespace std;
 
int main(){
	int S[6];
	for(int i = 0; i < 6; i++){
		cin >> S[i];
	}
	sort(S, S + 6);
	int ans = 0;
	for(int i = 0; i < 4; i++){
		ans += S[i + 1];
	}
	cout << ans / 4.0 << endl;
}
0