結果

問題 No.394 ハーフパイプ(1)
ユーザー Jikky1618
提出日時 2025-09-03 07:20:53
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 635 bytes
コンパイル時間 3,368 ms
コンパイル使用メモリ 281,436 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-09-03 07:20:58
合計ジャッジ時間 3,890 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;

#ifdef LOCAL
#include <debug.hpp>
#else
#define debug(...)
#endif

int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(20);
    vector<int> S(6);
    for (int i = 0; i < 6; i++) cin >> S[i];
    int sum = reduce(S.begin(), S.end());
    sum -= *max_element(S.begin(), S.end());
    sum -= *min_element(S.begin(), S.end());
    sum *= 25;
    if (sum == 0) {
        cout << "0.00" << '\n';
    } else {
        string ans = to_string(sum);
        ans.insert(ans.end() - 2, '.');
        cout << ans << '\n';
    }
}
0