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