結果
| 問題 |
No.394 ハーフパイプ(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-01 13:57:49 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 379 bytes |
| コンパイル時間 | 1,738 ms |
| コンパイル使用メモリ | 71,472 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-25 00:08:05 |
| 合計ジャッジ時間 | 1,923 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <iomanip>
using namespace std;
int main()
{
vector<int> S;
int a = 0;
double b;
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];
b = (double)a/(double)4;
cout << fixed;
cout << setprecision(2) << b << endl;
return 0;
}