結果
問題 | No.450 ベー君のシャトルラン |
ユーザー |
![]() |
提出日時 | 2017-03-12 14:03:02 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 264 bytes |
コンパイル時間 | 1,048 ms |
コンパイル使用メモリ | 157,048 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 00:24:08 |
合計ジャッジ時間 | 1,912 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define INF 2000000000 #define MOD 1000000007 typedef long long ll; typedef pair<int, int> P; int main() { double vl, vr, d, w; cin >> vl >> vr >> d >> w; double ret = (w * d)/(vr+vl); printf("%f\n",ret); }