結果
| 問題 |
No.1230 Hall_and_me
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-22 09:22:23 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 302 bytes |
| コンパイル時間 | 1,020 ms |
| コンパイル使用メモリ | 75,856 KB |
| 最終ジャッジ日時 | 2025-01-14 19:28:43 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 36 |
ソースコード
#include<iostream>
#include<algorithm>
#include<numeric>
#include<iomanip>
using namespace std;
int main(){
double d[3];
for(int i = 0; i < 3; i++) cin >> d[i];
double s = accumulate(d, d+3, 0.0);
cout << fixed << setprecision(12) << (s-*min_element(d,d+3))/s << endl;
return 0;
}