結果

問題 No.36 素数が嫌い!
ユーザー TawaraTawara
提出日時 2015-12-03 15:32:26
言語 Python2
(2.7.18)
結果
AC  
実行時間 1,808 ms / 5,000 ms
コード長 94 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 6,168 KB
最終ジャッジ日時 2023-09-09 07:27:04
合計ジャッジ時間 23,502 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 840 ms
6,080 KB
testcase_01 AC 1,400 ms
5,960 KB
testcase_02 AC 11 ms
5,972 KB
testcase_03 AC 11 ms
6,016 KB
testcase_04 AC 11 ms
5,932 KB
testcase_05 AC 16 ms
6,044 KB
testcase_06 AC 17 ms
6,068 KB
testcase_07 AC 17 ms
6,068 KB
testcase_08 AC 12 ms
5,936 KB
testcase_09 AC 14 ms
5,988 KB
testcase_10 AC 14 ms
6,076 KB
testcase_11 AC 594 ms
5,968 KB
testcase_12 AC 1,800 ms
6,016 KB
testcase_13 AC 1,808 ms
6,000 KB
testcase_14 AC 1,113 ms
6,164 KB
testcase_15 AC 11 ms
6,044 KB
testcase_16 AC 10 ms
6,012 KB
testcase_17 AC 11 ms
6,128 KB
testcase_18 AC 12 ms
5,936 KB
testcase_19 AC 710 ms
6,124 KB
testcase_20 AC 1,800 ms
6,000 KB
testcase_21 AC 1,375 ms
5,936 KB
testcase_22 AC 1,420 ms
6,060 KB
testcase_23 AC 858 ms
6,076 KB
testcase_24 AC 949 ms
6,072 KB
testcase_25 AC 936 ms
6,016 KB
testcase_26 AC 1,095 ms
6,168 KB
testcase_27 AC 1,542 ms
6,152 KB
testcase_28 AC 1,076 ms
5,940 KB
testcase_29 AC 1,738 ms
6,060 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

M=N=input();c=0;i=2
while i*i<=M:
	while N%i==0:c+=1;N/=i
	i+=1
print ["YES","NO"][c+(N!=1)<3]
0