結果

問題 No.159 刺さらないUSB
ユーザー koukonkokoukonko
提出日時 2015-12-13 02:21:43
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 615 bytes
コンパイル時間 1,711 ms
コンパイル使用メモリ 71,184 KB
実行使用メモリ 51,536 KB
最終ジャッジ日時 2023-10-13 14:12:48
合計ジャッジ時間 3,625 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
49,332 KB
testcase_01 AC 40 ms
49,436 KB
testcase_02 AC 44 ms
49,440 KB
testcase_03 AC 41 ms
49,448 KB
testcase_04 AC 42 ms
49,680 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 41 ms
49,700 KB
testcase_09 AC 43 ms
49,536 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 43 ms
49,656 KB
testcase_13 AC 42 ms
49,320 KB
testcase_14 AC 41 ms
49,796 KB
testcase_15 AC 40 ms
49,436 KB
testcase_16 AC 40 ms
50,064 KB
testcase_17 AC 40 ms
49,496 KB
testcase_18 AC 41 ms
49,808 KB
testcase_19 AC 40 ms
49,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Main {
	public static void main(String[] args) {
		BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
		try {
			String[] box = read.readLine().split(" ");
			double[] num = new double[2];
			for (int i = 0; i < 2; ++i) {
				num[i] = Double.parseDouble(box[i]);
			}
			double p1, p2;

			p1 = (1 - num[0]) * (1 - num[1]);
			p2 = num[0] * num[1] / 2;

			if (p1 < p2) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}

		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
0