結果

問題 No.450 ベー君のシャトルラン
ユーザー hermione17
提出日時 2016-12-16 23:58:18
言語 Java
(openjdk 23)
結果
AC  
実行時間 148 ms / 2,000 ms
コード長 469 bytes
コンパイル時間 3,706 ms
コンパイル使用メモリ 74,208 KB
実行使用メモリ 41,916 KB
最終ジャッジ日時 2024-11-30 21:54:21
合計ジャッジ時間 7,552 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

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