結果
| 問題 | No.394 ハーフパイプ(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-10-14 00:28:13 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 331 bytes |
| コンパイル時間 | 498 ms |
| コンパイル使用メモリ | 59,468 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-17 11:54:54 |
| 合計ジャッジ時間 | 1,059 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <algorithm>
using namespace std;
int main(){
int S[6];
for(int i = 0; i < 6; i++){
cin >> S[i];
}
sort(S, S + 6);
int ans = 0;
for(int i = 0; i < 4; i++){
ans += S[i + 1];
}
cout << ans / 4.0;
if(ans % 4 == 0){
cout << ".00";
}else if(ans % 2 == 0){
cout << "0";
}
cout << endl;
}