結果
| 問題 | No.450 ベー君のシャトルラン |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-12-01 12:56:55 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 2,000 ms |
| コード長 | 684 bytes |
| 記録 | |
| コンパイル時間 | 2,599 ms |
| コンパイル使用メモリ | 82,420 KB |
| 実行使用メモリ | 42,080 KB |
| 最終ジャッジ日時 | 2026-05-21 21:46:06 |
| 合計ジャッジ時間 | 5,061 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
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);
}
}
}