結果

問題 No.450 ベー君のシャトルラン
ユーザー nukacha
提出日時 2017-03-26 00:56:51
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 252 bytes
コンパイル時間 565 ms
コンパイル使用メモリ 68,352 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-06 06:17:21
合計ジャッジ時間 1,501 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>

int main() {
    long vr, vl;
    long d;
    long w;
    double s;
    std::cin >> vr >> vl >> d >> w;

    s = (double)d / (vr + vl);

    std::cout << std::fixed << std::setprecision(7) <<w * s << std::endl;
}
0