結果

問題 No.236 鴛鴦茶
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-09-17 12:17:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 632 bytes
コンパイル時間 3,487 ms
コンパイル使用メモリ 72,244 KB
実行使用メモリ 49,752 KB
最終ジャッジ日時 2023-09-10 22:13:29
合計ジャッジ時間 5,155 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
49,048 KB
testcase_01 AC 43 ms
49,024 KB
testcase_02 AC 43 ms
49,064 KB
testcase_03 AC 43 ms
49,184 KB
testcase_04 AC 43 ms
49,236 KB
testcase_05 AC 43 ms
49,752 KB
testcase_06 AC 43 ms
48,952 KB
testcase_07 AC 43 ms
49,108 KB
testcase_08 AC 43 ms
49,184 KB
testcase_09 AC 43 ms
49,124 KB
testcase_10 AC 43 ms
49,092 KB
testcase_11 AC 44 ms
49,112 KB
testcase_12 AC 44 ms
49,084 KB
testcase_13 AC 43 ms
49,416 KB
testcase_14 AC 43 ms
49,192 KB
testcase_15 AC 43 ms
49,276 KB
testcase_16 AC 43 ms
47,396 KB
testcase_17 AC 42 ms
48,940 KB
testcase_18 AC 43 ms
47,140 KB
testcase_19 AC 43 ms
49,024 KB
testcase_20 AC 44 ms
49,080 KB
testcase_21 AC 44 ms
49,020 KB
testcase_22 AC 43 ms
49,092 KB
testcase_23 AC 44 ms
49,180 KB
testcase_24 AC 44 ms
48,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import static java.lang.System.in;

public class No236 {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        String[] inputs = reader.readLine().split(" ");
        int A = Integer.parseInt(inputs[0]);
        int B = Integer.parseInt(inputs[1]);
        int X = Integer.parseInt(inputs[2]);
        int Y = Integer.parseInt(inputs[3]);

        System.out.println((A + B) * (float) Math.min(X / ((double) A), Y / ((double) B)));

    }
}
0