結果

問題 No.159 刺さらないUSB
ユーザー spaciaspacia
提出日時 2015-12-20 11:07:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 47 ms / 1,000 ms
コード長 469 bytes
コンパイル時間 2,203 ms
コンパイル使用メモリ 71,684 KB
実行使用メモリ 50,148 KB
最終ジャッジ日時 2023-09-14 16:49:31
合計ジャッジ時間 3,868 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
49,564 KB
testcase_01 AC 45 ms
49,556 KB
testcase_02 AC 45 ms
49,464 KB
testcase_03 AC 44 ms
49,380 KB
testcase_04 AC 47 ms
49,456 KB
testcase_05 AC 45 ms
49,668 KB
testcase_06 AC 45 ms
49,724 KB
testcase_07 AC 46 ms
50,148 KB
testcase_08 AC 45 ms
49,436 KB
testcase_09 AC 46 ms
49,408 KB
testcase_10 AC 46 ms
49,632 KB
testcase_11 AC 45 ms
49,264 KB
testcase_12 AC 45 ms
49,476 KB
testcase_13 AC 44 ms
49,292 KB
testcase_14 AC 44 ms
49,460 KB
testcase_15 AC 45 ms
49,424 KB
testcase_16 AC 46 ms
49,560 KB
testcase_17 AC 46 ms
49,696 KB
testcase_18 AC 45 ms
49,500 KB
testcase_19 AC 44 ms
49,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;

class Main159 {
	
	public static void out (Object out) {
		System.out.println(out);
	}
	
	public static void main (String[] args) throws IOException {
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		String[] line = br.readLine().split(" ");
		double p = Double.parseDouble(line[0]);
		double q = Double.parseDouble(line[1]);
		
		System.out.println(1 - p < p * (1 - q) ? "YES" : "NO");
		
	}
}
0