結果

問題 No.450 ベー君のシャトルラン
ユーザー fjafjafjafjafjafja
提出日時 2017-09-10 13:52:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 148 ms / 2,000 ms
コード長 308 bytes
コンパイル時間 3,613 ms
コンパイル使用メモリ 74,612 KB
実行使用メモリ 41,664 KB
最終ジャッジ日時 2024-04-25 02:57:07
合計ジャッジ時間 7,862 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
41,264 KB
testcase_01 AC 111 ms
41,316 KB
testcase_02 AC 112 ms
41,176 KB
testcase_03 AC 111 ms
40,460 KB
testcase_04 AC 100 ms
40,368 KB
testcase_05 AC 115 ms
41,272 KB
testcase_06 AC 117 ms
41,140 KB
testcase_07 AC 114 ms
41,352 KB
testcase_08 AC 109 ms
41,228 KB
testcase_09 AC 112 ms
41,124 KB
testcase_10 AC 107 ms
41,172 KB
testcase_11 AC 114 ms
41,344 KB
testcase_12 AC 112 ms
41,188 KB
testcase_13 AC 110 ms
41,208 KB
testcase_14 AC 113 ms
41,456 KB
testcase_15 AC 141 ms
41,292 KB
testcase_16 AC 144 ms
41,372 KB
testcase_17 AC 142 ms
41,468 KB
testcase_18 AC 146 ms
41,664 KB
testcase_19 AC 145 ms
41,388 KB
testcase_20 AC 140 ms
41,380 KB
testcase_21 AC 148 ms
41,284 KB
testcase_22 AC 100 ms
40,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class N450
{
	public static void main(String[] args)
	{
		Scanner sc =new Scanner (System.in);
		double v1=sc.nextInt(),v2=sc.nextInt();
		double d=sc.nextInt();
		double w=sc.nextInt();

		double ans=w*d/(v1+v2);

		System.out.printf("%.7f",ans);
	}

}
0