結果
| 問題 | No.450 ベー君のシャトルラン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-17 12:02:12 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 831µs | |
| コード長 | 435 bytes |
| 記録 | |
| コンパイル時間 | 1,248 ms |
| コンパイル使用メモリ | 213,228 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-10-13 01:10:54 |
| 合計ジャッジ時間 | 2,920 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0; i<(int)(n); i++)
#define FOR(i,b,e) for (int i=(int)(b); i<(int)(e); i++)
#define ALL(x) (x).begin(), (x).end()
const double PI = acos(-1);
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
double vl, vr, d, w;
cin >> vl >> vr >> d >> w;
double ret = d / (vl + vr) * w;
cout << fixed << setprecision(12) << ret << endl;
return 0;
}