結果

問題 No.236 鴛鴦茶
ユーザー t8m8⛄️t8m8⛄️
提出日時 2015-08-12 16:35:35
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 701 bytes
コンパイル時間 4,336 ms
コンパイル使用メモリ 73,784 KB
実行使用メモリ 56,356 KB
最終ジャッジ日時 2023-09-10 21:53:13
合計ジャッジ時間 8,868 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
56,220 KB
testcase_01 AC 134 ms
55,976 KB
testcase_02 AC 136 ms
55,544 KB
testcase_03 AC 132 ms
56,016 KB
testcase_04 AC 134 ms
55,988 KB
testcase_05 AC 131 ms
55,840 KB
testcase_06 AC 132 ms
53,736 KB
testcase_07 AC 134 ms
55,768 KB
testcase_08 AC 134 ms
55,720 KB
testcase_09 AC 131 ms
55,596 KB
testcase_10 AC 131 ms
55,588 KB
testcase_11 AC 132 ms
55,936 KB
testcase_12 AC 133 ms
55,688 KB
testcase_13 AC 132 ms
56,120 KB
testcase_14 AC 131 ms
55,860 KB
testcase_15 AC 132 ms
55,668 KB
testcase_16 AC 131 ms
55,856 KB
testcase_17 AC 131 ms
55,700 KB
testcase_18 AC 133 ms
55,396 KB
testcase_19 AC 132 ms
56,356 KB
testcase_20 AC 130 ms
55,668 KB
testcase_21 AC 130 ms
55,676 KB
testcase_22 AC 130 ms
55,824 KB
testcase_23 AC 131 ms
55,564 KB
testcase_24 AC 131 ms
55,604 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
import java.awt.geom.*;
import java.math.*;

public class No0236 {
	
	static final Scanner in = new Scanner(System.in);
	static final PrintWriter out = new PrintWriter(System.out,false);

	static void solve() {
		double a = in.nextInt();
		double b = in.nextInt();
		int x = in.nextInt();
		int y = in.nextInt();

		out.printf("%.10f\n",(a+b)*Math.min(x/a,y/b));
	}

	public static void main(String[] args) {
		long start = System.currentTimeMillis();

		solve();
		out.flush();

		long end = System.currentTimeMillis();
		//trace(end-start + "ms");
		in.close();
		out.close();
	}

	static void trace(Object... o) { System.out.println(Arrays.deepToString(o));}
}
0