結果

問題 No.36 素数が嫌い!
ユーザー tabataba
提出日時 2016-05-08 05:00:42
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 145 bytes
コンパイル時間 200 ms
コンパイル使用メモリ 6,940 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-15 13:45:08
合計ジャッジ時間 8,365 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 384 ms
6,528 KB
testcase_02 AC 13 ms
6,400 KB
testcase_03 AC 12 ms
6,528 KB
testcase_04 AC 12 ms
6,400 KB
testcase_05 AC 14 ms
6,656 KB
testcase_06 AC 15 ms
6,656 KB
testcase_07 AC 15 ms
6,656 KB
testcase_08 AC 13 ms
6,656 KB
testcase_09 AC 11 ms
6,528 KB
testcase_10 WA -
testcase_11 AC 228 ms
6,528 KB
testcase_12 AC 670 ms
6,528 KB
testcase_13 AC 670 ms
6,656 KB
testcase_14 AC 15 ms
6,528 KB
testcase_15 WA -
testcase_16 AC 11 ms
6,656 KB
testcase_17 AC 12 ms
6,400 KB
testcase_18 AC 13 ms
6,528 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 129 ms
6,528 KB
testcase_25 WA -
testcase_26 AC 411 ms
6,656 KB
testcase_27 AC 579 ms
6,528 KB
testcase_28 AC 403 ms
6,784 KB
testcase_29 AC 666 ms
6,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=input()
c=0
while n&1==0:
	n>>=1
	c+=1
for i in xrange(3,int(n**0.5)+2,2):
	while n%i==0:
		n/=i
		c+=1
	if c>2:
		break
print["NO","YES"][c>2]
0