結果

問題 No.236 鴛鴦茶
ユーザー Mcpu3Mcpu3
提出日時 2018-06-27 20:23:21
言語 Java21
(openjdk 21)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 274 bytes
コンパイル時間 4,878 ms
コンパイル使用メモリ 71,244 KB
実行使用メモリ 57,936 KB
最終ジャッジ日時 2023-09-13 14:32:14
合計ジャッジ時間 8,448 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
56,096 KB
testcase_01 AC 136 ms
56,564 KB
testcase_02 AC 136 ms
56,360 KB
testcase_03 AC 136 ms
55,972 KB
testcase_04 AC 133 ms
55,856 KB
testcase_05 AC 133 ms
56,204 KB
testcase_06 AC 132 ms
57,936 KB
testcase_07 AC 133 ms
56,264 KB
testcase_08 AC 136 ms
56,180 KB
testcase_09 AC 137 ms
56,120 KB
testcase_10 AC 135 ms
55,912 KB
testcase_11 AC 136 ms
55,976 KB
testcase_12 AC 135 ms
56,196 KB
testcase_13 AC 138 ms
56,000 KB
testcase_14 AC 135 ms
56,168 KB
testcase_15 AC 137 ms
56,028 KB
testcase_16 AC 138 ms
53,664 KB
testcase_17 AC 139 ms
56,236 KB
testcase_18 AC 137 ms
56,096 KB
testcase_19 AC 137 ms
56,116 KB
testcase_20 AC 134 ms
56,332 KB
testcase_21 AC 135 ms
56,068 KB
testcase_22 AC 135 ms
56,108 KB
testcase_23 AC 136 ms
56,016 KB
testcase_24 AC 137 ms
56,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class no236{
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		double a=stdIn.nextDouble(),b=stdIn.nextDouble(),x=stdIn.nextDouble(),y=stdIn.nextDouble();
		System.out.print(x/a*b<=y?x+x*b/a:y+y*a/b);
	}
}
0