結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 936 ms
148,432 KB
testcase_01 AC 352 ms
245,284 KB
testcase_02 AC 11 ms
6,020 KB
testcase_03 AC 11 ms
6,056 KB
testcase_04 AC 12 ms
6,164 KB
testcase_05 AC 19 ms
6,920 KB
testcase_06 AC 23 ms
6,776 KB
testcase_07 AC 23 ms
6,852 KB
testcase_08 AC 11 ms
6,216 KB
testcase_09 AC 12 ms
6,624 KB
testcase_10 AC 12 ms
6,520 KB
testcase_11 AC 1,213 ms
105,892 KB
testcase_12 AC 3,720 ms
313,476 KB
testcase_13 AC 3,705 ms
312,576 KB
testcase_14 AC 229 ms
196,712 KB
testcase_15 AC 11 ms
6,220 KB
testcase_16 AC 11 ms
6,104 KB
testcase_17 AC 11 ms
6,024 KB
testcase_18 AC 12 ms
6,304 KB
testcase_19 AC 276 ms
125,820 KB
testcase_20 AC 445 ms
312,580 KB
testcase_21 AC 705 ms
240,776 KB
testcase_22 AC 321 ms
247,796 KB
testcase_23 AC 192 ms
151,152 KB
testcase_24 AC 668 ms
167,792 KB
testcase_25 AC 762 ms
164,908 KB
testcase_26 AC 1,384 ms
192,344 KB
testcase_27 AC 352 ms
269,356 KB
testcase_28 AC 1,358 ms
188,520 KB
testcase_29 AC 349 ms
302,860 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = long(raw_input())
L =long(math.ceil(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