結果
| 問題 | No.394 ハーフパイプ(1) |
| コンテスト | |
| ユーザー |
r2en_
|
| 提出日時 | 2017-03-20 13:21:19 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 415µs | |
| コード長 | 407 bytes |
| 記録 | |
| コンパイル時間 | 456 ms |
| コンパイル使用メモリ | 97,144 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-07 07:54:16 |
| 合計ジャッジ時間 | 1,814 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <iomanip>
#include <numeric>
using namespace std;
int main(){
vector<double>vec;
double S[6] = {};
double sum = 0;
for(int i = 0; i < 6; ++i){ cin >> S[i]; vec.push_back(S[i]); }
sort(begin(vec),end(vec));
cout << fixed << setprecision(2) << accumulate(vec.begin()+1,vec.end()-1,0.0) / 4.0 << endl;
return 0;
}
r2en_