結果

問題 No.450 ベー君のシャトルラン
ユーザー Mcpu3Mcpu3
提出日時 2018-09-01 18:14:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 148 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 2,140 ms
コンパイル使用メモリ 73,956 KB
実行使用メモリ 57,972 KB
最終ジャッジ日時 2023-10-19 16:00:40
合計ジャッジ時間 6,745 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 144 ms
57,816 KB
testcase_01 AC 147 ms
57,792 KB
testcase_02 AC 144 ms
57,928 KB
testcase_03 AC 147 ms
57,888 KB
testcase_04 AC 145 ms
57,896 KB
testcase_05 AC 145 ms
57,916 KB
testcase_06 AC 142 ms
57,752 KB
testcase_07 AC 146 ms
57,780 KB
testcase_08 AC 142 ms
57,872 KB
testcase_09 AC 145 ms
57,856 KB
testcase_10 AC 143 ms
57,784 KB
testcase_11 AC 147 ms
57,872 KB
testcase_12 AC 146 ms
57,828 KB
testcase_13 AC 144 ms
57,860 KB
testcase_14 AC 147 ms
57,828 KB
testcase_15 AC 148 ms
57,872 KB
testcase_16 AC 146 ms
57,852 KB
testcase_17 AC 146 ms
57,876 KB
testcase_18 AC 148 ms
57,868 KB
testcase_19 AC 147 ms
57,836 KB
testcase_20 AC 147 ms
57,800 KB
testcase_21 AC 146 ms
57,932 KB
testcase_22 AC 145 ms
57,972 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		double vl=sc.nextDouble(),vr=sc.nextDouble(),d=sc.nextDouble(),w=sc.nextDouble();
		sc.close();
		System.out.print(d/(vl+vr)*w);
	}
}
0