結果
| 問題 |
No.394 ハーフパイプ(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-07-19 13:00:19 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 314 bytes |
| コンパイル時間 | 614 ms |
| コンパイル使用メモリ | 65,812 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-15 17:19:04 |
| 合計ジャッジ時間 | 1,007 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <algorithm>
#include <iomanip>
using namespace std;
int main()
{
int in[6];
double ave;
for(int i=0; i<6; i++){
cin>>in[i];
}
sort(in,in+(6));
ave = (double(in[1])+double(in[2])+double(in[3])+double(in[4]))/4;
cout<<fixed<<setprecision(2)<<ave<<endl;
return 0;
}