結果
問題 | No.394 ハーフパイプ(1) |
ユーザー |
![]() |
提出日時 | 2019-06-20 10:06:10 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 689 ms |
コンパイル使用メモリ | 63,900 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-16 00:13:34 |
合計ジャッジ時間 | 1,108 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <numeric> using namespace std; int main() { vector<int> v(6); for (int i=0; i<6; i++) { cin >> v[i]; } sort(v.begin(), v.end()); printf("%0.2lf\n", accumulate(v.begin()+1, v.end()-1, 0)/4.0); return 0; }