結果
問題 |
No.394 ハーフパイプ(1)
|
ユーザー |
![]() |
提出日時 | 2025-09-03 07:18:21 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 591 bytes |
コンパイル時間 | 3,051 ms |
コンパイル使用メモリ | 281,608 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-09-03 07:18:26 |
合計ジャッジ時間 | 4,194 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 1 |
ソースコード
#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; string ans = to_string(sum); while (ssize(ans) < 3) ans += '0'; ans.insert(ans.end() - 2, '.'); cout << ans << '\n'; }