結果
| 問題 |
No.1230 Hall_and_me
|
| コンテスト | |
| ユーザー |
iqueue02
|
| 提出日時 | 2020-09-18 22:16:22 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 387 bytes |
| コンパイル時間 | 2,894 ms |
| コンパイル使用メモリ | 196,876 KB |
| 最終ジャッジ日時 | 2025-01-14 17:20:32 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 36 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i = 0; i < (n);i++)
#define sz(x) int(x.size())
typedef long long ll;
typedef long double ld;
typedef pair<int,int> P;
int main() {
vector<ld> v(3), p(3);
rep(i,3) cin >> v[i];
rep(i,3) {
p[i] = v[i] / (v[0] + v[1] + v[2]);
}
sort(p.begin(), p.end());
printf("%.12Lf\n", p[1] + p[2]);
return 0;
}
iqueue02