結果
| 問題 |
No.394 ハーフパイプ(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-28 12:17:24 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 294 bytes |
| コンパイル時間 | 621 ms |
| コンパイル使用メモリ | 74,496 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-02 14:58:51 |
| 合計ジャッジ時間 | 1,322 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <algorithm>
#include <iomanip>
using namespace std;
int main() {
int a[6];
for (auto& e : a) cin >> e;
sort(a, a + 6);
int sum = 0;
for (int i = 1; i <= 4; i++) {
sum += a[i];
}
cout << fixed << setprecision(2) << sum / 4.0 << endl;
return 0;
}