結果
| 問題 |
No.394 ハーフパイプ(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-18 18:52:15 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 294 bytes |
| コンパイル時間 | 443 ms |
| コンパイル使用メモリ | 60,300 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 04:31:42 |
| 合計ジャッジ時間 | 967 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <algorithm>
#include <string>
#include <cstdio>
using namespace std;
int main()
{
int s[6];
for (auto& x : s) cin >> x;
sort (s, s + 6);
int sum = 0;
for (int i = 1; i < 5; i++) sum += s[i];
printf("%.2f\n", sum / 4.0);
return 0;
}