結果

問題 No.450 ベー君のシャトルラン
ユーザー kohaku_kohaku
提出日時 2016-12-02 15:51:22
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 349 bytes
コンパイル時間 1,912 ms
コンパイル使用メモリ 73,968 KB
実行使用メモリ 41,384 KB
最終ジャッジ日時 2024-11-27 17:16:55
合計ジャッジ時間 5,459 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 2 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int Vl = sc.nextInt();
        int Vr = sc.nextInt();
        int d = sc.nextInt();
        int w = sc.nextInt();
        double t = d/(Vl+Vr);
        double ans = t*w;
        System.out.println(ans);
    }
}
0