結果
問題 |
No.450 ベー君のシャトルラン
|
ユーザー |
![]() |
提出日時 | 2018-01-24 20:03:30 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 433 bytes |
コンパイル時間 | 556 ms |
コンパイル使用メモリ | 65,596 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-26 07:48:54 |
合計ジャッジ時間 | 1,423 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 6 |
ソースコード
#include<iostream> #include<algorithm> #include<string> #include<vector> #include<iomanip> #define RREP(i,s,e) for (i = s; i >= e; i--) #define rrep(i,n) RREP(i,n,0) #define REP(i,s,e) for (i = s; i < e; i++) #define rep(i,n) REP(i,0,n) #define INF 100000000 using namespace std; int main(){ double vl, vr; cin >> vl >> vr; double d, w; cin >> d; cin >> w; double ans = w * d/(vl + vr); cout << ans << endl; return 0; }