結果

問題 No.36 素数が嫌い!
ユーザー tookunn_1213tookunn_1213
提出日時 2015-09-06 10:02:44
言語 Python2
(2.7.18)
結果
AC  
実行時間 3,531 ms / 5,000 ms
コード長 189 bytes
コンパイル時間 336 ms
コンパイル使用メモリ 6,580 KB
実行使用メモリ 6,192 KB
最終ジャッジ日時 2023-09-09 07:19:02
合計ジャッジ時間 16,502 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 830 ms
6,128 KB
testcase_01 AC 74 ms
6,164 KB
testcase_02 AC 12 ms
6,176 KB
testcase_03 AC 11 ms
6,104 KB
testcase_04 AC 11 ms
6,148 KB
testcase_05 AC 18 ms
6,076 KB
testcase_06 AC 22 ms
6,036 KB
testcase_07 AC 23 ms
6,168 KB
testcase_08 AC 11 ms
6,192 KB
testcase_09 AC 11 ms
6,032 KB
testcase_10 AC 12 ms
6,148 KB
testcase_11 AC 1,155 ms
6,116 KB
testcase_12 AC 3,531 ms
6,036 KB
testcase_13 AC 3,530 ms
6,128 KB
testcase_14 AC 23 ms
5,992 KB
testcase_15 AC 12 ms
6,116 KB
testcase_16 AC 11 ms
6,096 KB
testcase_17 AC 11 ms
6,144 KB
testcase_18 AC 11 ms
6,120 KB
testcase_19 AC 154 ms
6,036 KB
testcase_20 AC 124 ms
6,072 KB
testcase_21 AC 472 ms
6,144 KB
testcase_22 AC 64 ms
6,116 KB
testcase_23 AC 33 ms
6,000 KB
testcase_24 AC 518 ms
6,120 KB
testcase_25 AC 617 ms
6,092 KB
testcase_26 AC 1,241 ms
6,096 KB
testcase_27 AC 74 ms
6,160 KB
testcase_28 AC 1,223 ms
6,040 KB
testcase_29 AC 37 ms
6,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = long(raw_input())
L =long(math.ceil(math.sqrt(N)))
i = 2
c = 0
while i * i <= N:
	while N % i == 0:
		N /= i
		c += 1
	i += 1
if N > 1:c += 1
print 'YES' if c >= 3 else 'NO'
0