結果

問題 No.236 鴛鴦茶
ユーザー mits58mits58
提出日時 2016-07-02 00:49:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 144 ms / 2,000 ms
コード長 325 bytes
コンパイル時間 1,994 ms
コンパイル使用メモリ 71,240 KB
実行使用メモリ 56,344 KB
最終ジャッジ日時 2023-09-10 22:05:57
合計ジャッジ時間 6,793 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
56,012 KB
testcase_01 AC 140 ms
55,696 KB
testcase_02 AC 141 ms
55,780 KB
testcase_03 AC 140 ms
55,980 KB
testcase_04 AC 140 ms
55,640 KB
testcase_05 AC 142 ms
55,824 KB
testcase_06 AC 141 ms
55,612 KB
testcase_07 AC 142 ms
55,824 KB
testcase_08 AC 142 ms
55,672 KB
testcase_09 AC 141 ms
55,796 KB
testcase_10 AC 139 ms
56,156 KB
testcase_11 AC 139 ms
55,952 KB
testcase_12 AC 142 ms
56,344 KB
testcase_13 AC 140 ms
55,736 KB
testcase_14 AC 140 ms
55,780 KB
testcase_15 AC 140 ms
55,500 KB
testcase_16 AC 144 ms
55,888 KB
testcase_17 AC 140 ms
55,488 KB
testcase_18 AC 140 ms
56,136 KB
testcase_19 AC 143 ms
55,628 KB
testcase_20 AC 139 ms
55,752 KB
testcase_21 AC 138 ms
56,024 KB
testcase_22 AC 139 ms
55,804 KB
testcase_23 AC 138 ms
55,860 KB
testcase_24 AC 137 ms
55,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNext()){
			double a=sc.nextDouble();
			double b=sc.nextDouble();
			double x=sc.nextDouble();
			double y=sc.nextDouble();
			System.out.println(Math.min(x*(a+b)/a,y*(a+b)/b));
		}
	}
}
0