結果
問題 | No.450 ベー君のシャトルラン |
ユーザー |
![]() |
提出日時 | 2016-12-02 15:51:45 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 143 ms / 2,000 ms |
コード長 | 357 bytes |
コンパイル時間 | 2,361 ms |
コンパイル使用メモリ | 73,884 KB |
実行使用メモリ | 41,808 KB |
最終ジャッジ日時 | 2024-11-27 17:17:15 |
合計ジャッジ時間 | 6,402 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
import java.util.*;public class Main {public static void main(String[] args) {Scanner sc = new Scanner(System.in);int Vl = sc.nextInt();int Vr = sc.nextInt();int d = sc.nextInt();int w = sc.nextInt();double t = (double)d/(Vl+Vr);double ans = t*w;System.out.println(ans);}}