結果

問題 No.450 ベー君のシャトルラン
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-12-02 15:51:45
言語 Java19
(openjdk 21)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 357 bytes
コンパイル時間 2,062 ms
コンパイル使用メモリ 71,576 KB
実行使用メモリ 56,620 KB
最終ジャッジ日時 2023-08-18 12:17:37
合計ジャッジ時間 5,831 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
56,024 KB
testcase_01 AC 119 ms
55,700 KB
testcase_02 AC 116 ms
56,620 KB
testcase_03 AC 118 ms
55,876 KB
testcase_04 AC 116 ms
56,184 KB
testcase_05 AC 116 ms
55,620 KB
testcase_06 AC 113 ms
55,656 KB
testcase_07 AC 114 ms
56,392 KB
testcase_08 AC 115 ms
55,960 KB
testcase_09 AC 115 ms
56,164 KB
testcase_10 AC 113 ms
56,032 KB
testcase_11 AC 113 ms
55,844 KB
testcase_12 AC 115 ms
56,208 KB
testcase_13 AC 119 ms
55,744 KB
testcase_14 AC 116 ms
56,504 KB
testcase_15 AC 116 ms
55,588 KB
testcase_16 AC 116 ms
56,080 KB
testcase_17 AC 115 ms
55,972 KB
testcase_18 AC 117 ms
55,740 KB
testcase_19 AC 114 ms
56,028 KB
testcase_20 AC 115 ms
55,424 KB
testcase_21 AC 114 ms
56,096 KB
testcase_22 AC 114 ms
55,612 KB
権限があれば一括ダウンロードができます

ソースコード

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 = (double)d/(Vl+Vr);
        double ans = t*w;
        System.out.println(ans);
    }
}
0