結果

問題 No.450 ベー君のシャトルラン
ユーザー GrenacheGrenache
提出日時 2016-12-01 12:56:55
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 684 bytes
コンパイル時間 6,743 ms
コンパイル使用メモリ 72,824 KB
実行使用メモリ 56,380 KB
最終ジャッジ日時 2023-08-18 11:13:57
合計ジャッジ時間 6,850 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,780 KB
testcase_01 AC 118 ms
55,660 KB
testcase_02 AC 121 ms
55,600 KB
testcase_03 AC 119 ms
55,960 KB
testcase_04 AC 121 ms
55,796 KB
testcase_05 AC 118 ms
55,964 KB
testcase_06 AC 123 ms
55,304 KB
testcase_07 AC 121 ms
55,800 KB
testcase_08 AC 121 ms
55,596 KB
testcase_09 AC 121 ms
55,736 KB
testcase_10 AC 121 ms
55,564 KB
testcase_11 AC 120 ms
55,728 KB
testcase_12 AC 118 ms
55,688 KB
testcase_13 AC 121 ms
55,504 KB
testcase_14 AC 119 ms
55,676 KB
testcase_15 AC 118 ms
55,508 KB
testcase_16 AC 122 ms
55,784 KB
testcase_17 AC 125 ms
56,380 KB
testcase_18 AC 123 ms
55,496 KB
testcase_19 AC 120 ms
56,128 KB
testcase_20 AC 123 ms
53,740 KB
testcase_21 AC 125 ms
55,768 KB
testcase_22 AC 123 ms
55,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;


public class Main_yukicoder450 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int vl = sc.nextInt();
		int vr = sc.nextInt();
		int d = sc.nextInt();
		int w = sc.nextInt();

		double t = (double)d / (vl + vr);
		double ret = t * w;

//		pr.printf("%.7f\n", ret);
		pr.println(ret);
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
}
0