結果

問題 No.450 ベー君のシャトルラン
ユーザー ぴろずぴろず
提出日時 2016-12-01 00:07:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 160 ms / 2,000 ms
コード長 337 bytes
コンパイル時間 3,643 ms
コンパイル使用メモリ 73,872 KB
実行使用メモリ 57,852 KB
最終ジャッジ日時 2023-08-18 10:12:56
合計ジャッジ時間 8,072 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
56,128 KB
testcase_01 AC 136 ms
56,072 KB
testcase_02 AC 137 ms
55,940 KB
testcase_03 AC 132 ms
55,984 KB
testcase_04 AC 160 ms
55,864 KB
testcase_05 AC 139 ms
55,948 KB
testcase_06 AC 138 ms
55,688 KB
testcase_07 AC 139 ms
57,852 KB
testcase_08 AC 139 ms
55,788 KB
testcase_09 AC 139 ms
55,984 KB
testcase_10 AC 139 ms
55,876 KB
testcase_11 AC 139 ms
55,680 KB
testcase_12 AC 151 ms
55,868 KB
testcase_13 AC 140 ms
56,224 KB
testcase_14 AC 138 ms
55,888 KB
testcase_15 AC 137 ms
55,808 KB
testcase_16 AC 139 ms
55,868 KB
testcase_17 AC 140 ms
55,956 KB
testcase_18 AC 138 ms
55,968 KB
testcase_19 AC 137 ms
55,720 KB
testcase_20 AC 157 ms
56,004 KB
testcase_21 AC 137 ms
56,180 KB
testcase_22 AC 135 ms
56,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package no450;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double vl = sc.nextDouble();
		double vr = sc.nextDouble();
		double d = sc.nextDouble();
		double w = sc.nextDouble();
		System.out.println(String.format("%.7f", d / (vl + vr) * w));
	}

}
0