結果
| 問題 |
No.450 ベー君のシャトルラン
|
| コンテスト | |
| ユーザー |
takeya_okino
|
| 提出日時 | 2017-10-22 19:49:05 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 140 ms / 2,000 ms |
| コード長 | 331 bytes |
| コンパイル時間 | 2,311 ms |
| コンパイル使用メモリ | 73,992 KB |
| 実行使用メモリ | 48,584 KB |
| 最終ジャッジ日時 | 2024-11-21 13:50:31 |
| 合計ジャッジ時間 | 5,908 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long v1 = sc.nextLong();
long v2 = sc.nextLong();
long d = sc.nextLong();
long w = sc.nextLong();
double ans = ((double)(d * w)) / ((double)(v1 + v2));
System.out.println(ans);
}
}
takeya_okino