結果
問題 | No.450 ベー君のシャトルラン |
ユーザー |
![]() |
提出日時 | 2016-12-03 01:53:12 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 356 bytes |
コンパイル時間 | 595 ms |
コンパイル使用メモリ | 71,844 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-27 17:48:00 |
合計ジャッジ時間 | 1,356 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
#include<iostream> #include<algorithm> #include<cstdio> #include<cstdlib> #include<vector> #include<map> #include<queue> #include<string> #include<sstream> #include<cmath> #include<numeric> using namespace std; int main(){ double vl, vr, d, w; cin >> vl >> vr >> d >> w; double ans = d / ( vl + vr ) * w; printf("%.10f\n", ans); return 0; }