結果
問題 | No.450 ベー君のシャトルラン |
ユーザー |
![]() |
提出日時 | 2016-12-01 01:32:35 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 301 bytes |
コンパイル時間 | 568 ms |
コンパイル使用メモリ | 57,692 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-27 14:53:34 |
合計ジャッジ時間 | 1,197 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <iostream> #include <sstream> #include <algorithm> #include <numeric> #include <cstdio> using namespace std; int main(int argc, char *argv[]) { cout.precision(10); long double vl, vr, d, w, ans = 0; cin >> vl >> vr >> d >> w; ans = d * w / (vl + vr); cout << ans << endl; return 0; }