結果

問題 No.394 ハーフパイプ(1)
ユーザー Pachicobue
提出日時 2017-08-27 22:31:08
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 363 bytes
コンパイル時間 716 ms
コンパイル使用メモリ 80,244 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-06 07:02:54
合計ジャッジ時間 1,278 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
using namespace std;
using ll = long long;
int main()
{
vector<ll> score(6);
for(int i = 0; i < 6; i++){
cin >> score[i];
}
sort(score.begin(), score.end());
ll sum = 0;
for(int i = 1; i < 5; i++){
sum += score[i];
}
cout << fixed << setprecision(4) << sum*1.0 / 4 << endl;
return 0;
}
0