結果
問題 |
No.394 ハーフパイプ(1)
|
ユーザー |
|
提出日時 | 2018-10-06 14:25:31 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 292 bytes |
コンパイル時間 | 512 ms |
コンパイル使用メモリ | 74,824 KB |
最終ジャッジ日時 | 2025-01-06 14:22:51 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 9 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <numeric> using namespace std; int main() { vector<int> s(6); for (auto &x : s) cin >> x; cout << (accumulate(s.begin(), s.end(), 0) - *max_element(s.begin(), s.end()) - *min_element(s.begin(), s.end())) / 4.0 << endl; }