結果

問題 No.236 鴛鴦茶
ユーザー fal_rndfal_rnd
提出日時 2018-04-18 08:59:52
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 2,089 ms
コンパイル使用メモリ 73,000 KB
実行使用メモリ 58,204 KB
最終ジャッジ日時 2023-09-10 22:16:24
合計ジャッジ時間 6,625 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
56,172 KB
testcase_01 AC 136 ms
56,112 KB
testcase_02 AC 135 ms
56,468 KB
testcase_03 AC 136 ms
56,344 KB
testcase_04 AC 135 ms
56,256 KB
testcase_05 AC 135 ms
55,744 KB
testcase_06 AC 134 ms
55,808 KB
testcase_07 AC 135 ms
55,700 KB
testcase_08 AC 134 ms
56,120 KB
testcase_09 AC 136 ms
56,100 KB
testcase_10 AC 135 ms
55,932 KB
testcase_11 AC 135 ms
55,960 KB
testcase_12 AC 133 ms
55,804 KB
testcase_13 AC 133 ms
56,180 KB
testcase_14 AC 135 ms
58,204 KB
testcase_15 AC 134 ms
55,824 KB
testcase_16 AC 135 ms
56,056 KB
testcase_17 AC 134 ms
55,848 KB
testcase_18 AC 135 ms
56,696 KB
testcase_19 AC 135 ms
56,032 KB
testcase_20 AC 136 ms
56,196 KB
testcase_21 AC 135 ms
56,188 KB
testcase_22 AC 135 ms
56,184 KB
testcase_23 AC 134 ms
55,828 KB
testcase_24 AC 134 ms
56,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.*;
class Main {
    static Scanner s=new Scanner(System.in);
    static int gInt(){return Integer.parseInt(s.next());}
    public static void main(String[]$){
        int a=gInt(),b=gInt();
        System.out.println((a+b)*Math.min(s.nextDouble()/a,s.nextDouble()/b));
    }
}
0