結果

問題 No.36 素数が嫌い!
ユーザー tookunn_1213tookunn_1213
提出日時 2015-09-06 10:06:54
言語 Python2
(2.7.18)
結果
AC  
実行時間 3,701 ms / 5,000 ms
コード長 191 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 6,476 KB
実行使用メモリ 313,616 KB
最終ジャッジ日時 2023-09-09 07:20:15
合計ジャッジ時間 19,217 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 945 ms
148,328 KB
testcase_01 AC 329 ms
245,296 KB
testcase_02 AC 11 ms
5,972 KB
testcase_03 AC 11 ms
6,184 KB
testcase_04 AC 11 ms
6,024 KB
testcase_05 AC 19 ms
6,852 KB
testcase_06 AC 22 ms
6,776 KB
testcase_07 AC 23 ms
6,928 KB
testcase_08 AC 12 ms
6,340 KB
testcase_09 AC 12 ms
6,624 KB
testcase_10 AC 13 ms
6,548 KB
testcase_11 AC 1,212 ms
105,964 KB
testcase_12 AC 3,701 ms
313,616 KB
testcase_13 AC 3,680 ms
312,492 KB
testcase_14 AC 228 ms
196,756 KB
testcase_15 AC 11 ms
6,024 KB
testcase_16 AC 11 ms
5,972 KB
testcase_17 AC 11 ms
6,208 KB
testcase_18 AC 11 ms
6,120 KB
testcase_19 AC 281 ms
125,948 KB
testcase_20 AC 441 ms
312,428 KB
testcase_21 AC 703 ms
240,720 KB
testcase_22 AC 320 ms
247,896 KB
testcase_23 AC 192 ms
151,240 KB
testcase_24 AC 668 ms
167,740 KB
testcase_25 AC 758 ms
164,936 KB
testcase_26 AC 1,385 ms
192,228 KB
testcase_27 AC 353 ms
269,200 KB
testcase_28 AC 1,360 ms
188,564 KB
testcase_29 AC 348 ms
302,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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