結果

問題 No.450 ベー君のシャトルラン
ユーザー eve__fuyuki
提出日時 2018-03-15 05:07:02
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 212 bytes
コンパイル時間 656 ms
コンパイル使用メモリ 54,856 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-14 09:47:09
合計ジャッジ時間 1,834 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
    int vl,vr,d,w;
    double ans;
    cin >> vl >> vr >> d >> w;
    ans = ((double)d*w)/(vl+vr);
    printf("%.10lf\n",ans);
    return 0;
}
0