結果
| 問題 |
No.394 ハーフパイプ(1)
|
| コンテスト | |
| ユーザー |
Jikky1618
|
| 提出日時 | 2025-09-03 07:24:09 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 597 bytes |
| コンパイル時間 | 2,901 ms |
| コンパイル使用メモリ | 281,568 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-09-03 07:24:14 |
| 合計ジャッジ時間 | 3,797 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#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) <= 2) ans = '0' + ans;
ans.insert(ans.end() - 2, '.');
cout << ans << '\n';
}
Jikky1618