結果
問題 | No.450 ベー君のシャトルラン |
ユーザー | crazybbb3 |
提出日時 | 2016-12-05 19:04:11 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 44 ms / 2,000 ms |
コード長 | 1,719 bytes |
コンパイル時間 | 3,488 ms |
コンパイル使用メモリ | 73,928 KB |
実行使用メモリ | 50,220 KB |
最終ジャッジ日時 | 2023-08-18 16:09:29 |
合計ジャッジ時間 | 4,420 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 42 ms
49,888 KB |
testcase_01 | AC | 41 ms
49,716 KB |
testcase_02 | AC | 40 ms
49,672 KB |
testcase_03 | AC | 41 ms
49,744 KB |
testcase_04 | AC | 44 ms
50,220 KB |
testcase_05 | AC | 44 ms
49,800 KB |
testcase_06 | AC | 44 ms
47,772 KB |
testcase_07 | AC | 44 ms
49,992 KB |
testcase_08 | AC | 41 ms
49,796 KB |
testcase_09 | AC | 42 ms
49,720 KB |
testcase_10 | AC | 44 ms
49,776 KB |
testcase_11 | AC | 44 ms
49,764 KB |
testcase_12 | AC | 43 ms
49,816 KB |
testcase_13 | AC | 43 ms
50,036 KB |
testcase_14 | AC | 43 ms
50,196 KB |
testcase_15 | AC | 43 ms
49,688 KB |
testcase_16 | AC | 44 ms
49,716 KB |
testcase_17 | AC | 41 ms
49,892 KB |
testcase_18 | AC | 42 ms
49,752 KB |
testcase_19 | AC | 42 ms
49,956 KB |
testcase_20 | AC | 41 ms
49,672 KB |
testcase_21 | AC | 41 ms
49,676 KB |
testcase_22 | AC | 41 ms
49,904 KB |
ソースコード
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringTokenizer; public class Main { static BufferedReader in; static PrintWriter out; static StringTokenizer tok; void solve() throws IOException { double vl = nd(); double vr = nd(); double d = nd(); double w = nd(); out.println(w * d / (vl + vr)); } String ns() throws IOException { while (!tok.hasMoreTokens()) { tok = new StringTokenizer(in.readLine(), " "); } return tok.nextToken(); } int ni() throws IOException { return Integer.parseInt(ns()); } long nl() throws IOException { return Long.parseLong(ns()); } double nd() throws IOException { return Double.parseDouble(ns()); } String[] nsa(int n) throws IOException { String[] res = new String[n]; for (int i = 0; i < n; i++) { res[i] = ns(); } return res; } int[] nia(int n) throws IOException { int[] res = new int[n]; for (int i = 0; i < n; i++) { res[i] = ni(); } return res; } long[] nla(int n) throws IOException { long[] res = new long[n]; for (int i = 0; i < n; i++) { res[i] = nl(); } return res; } public static void main(String[] args) throws IOException { in = new BufferedReader(new InputStreamReader(System.in)); out = new PrintWriter(System.out); tok = new StringTokenizer(""); Main main = new Main(); main.solve(); out.close(); } }