結果

問題 No.450 ベー君のシャトルラン
ユーザー hermione17hermione17
提出日時 2016-12-16 23:58:18
言語 Java19
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 469 bytes
コンパイル時間 4,508 ms
コンパイル使用メモリ 71,456 KB
実行使用メモリ 57,652 KB
最終ジャッジ日時 2023-08-20 18:09:49
合計ジャッジ時間 8,137 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
56,016 KB
testcase_01 AC 113 ms
57,652 KB
testcase_02 AC 115 ms
55,864 KB
testcase_03 AC 120 ms
55,864 KB
testcase_04 AC 116 ms
55,792 KB
testcase_05 AC 111 ms
55,632 KB
testcase_06 AC 122 ms
55,916 KB
testcase_07 AC 110 ms
55,928 KB
testcase_08 AC 110 ms
56,260 KB
testcase_09 AC 111 ms
55,788 KB
testcase_10 AC 110 ms
55,652 KB
testcase_11 AC 111 ms
55,816 KB
testcase_12 AC 114 ms
55,932 KB
testcase_13 AC 110 ms
55,912 KB
testcase_14 AC 113 ms
55,916 KB
testcase_15 AC 113 ms
55,708 KB
testcase_16 AC 116 ms
55,928 KB
testcase_17 AC 111 ms
55,632 KB
testcase_18 AC 111 ms
55,856 KB
testcase_19 AC 109 ms
55,868 KB
testcase_20 AC 112 ms
56,132 KB
testcase_21 AC 110 ms
55,884 KB
testcase_22 AC 112 ms
55,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.PrintStream;
import java.util.Scanner;


public class Y450 {
	Scanner in = new Scanner(System.in);
	PrintStream out = new PrintStream(System.out);

	Y450() throws Exception {
		double vl = in.nextDouble();
		double vr = in.nextDouble();
		double d = in.nextDouble();
		double w = in.nextDouble();
		
		double t = d / (vl + vr);
		double dist = w * t;
		out.println(dist);
	}

	public static void main(String argv[]) throws Exception {
		new Y450();
	}
}
0