結果

問題 No.36 素数が嫌い!
ユーザー togatogatogatoga
提出日時 2015-09-02 10:45:56
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 218 ms / 5,000 ms
コード長 191 bytes
コンパイル時間 561 ms
コンパイル使用メモリ 77,492 KB
実行使用メモリ 78,900 KB
最終ジャッジ日時 2023-09-09 07:17:01
合計ジャッジ時間 4,840 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
77,676 KB
testcase_01 AC 77 ms
77,748 KB
testcase_02 AC 73 ms
76,264 KB
testcase_03 AC 74 ms
76,232 KB
testcase_04 AC 73 ms
76,328 KB
testcase_05 AC 75 ms
77,536 KB
testcase_06 AC 75 ms
77,308 KB
testcase_07 AC 76 ms
77,344 KB
testcase_08 AC 74 ms
76,512 KB
testcase_09 AC 74 ms
76,656 KB
testcase_10 AC 75 ms
77,740 KB
testcase_11 AC 122 ms
77,360 KB
testcase_12 AC 218 ms
77,488 KB
testcase_13 AC 217 ms
77,612 KB
testcase_14 AC 75 ms
77,532 KB
testcase_15 AC 74 ms
76,492 KB
testcase_16 AC 74 ms
76,156 KB
testcase_17 AC 75 ms
76,324 KB
testcase_18 AC 75 ms
76,384 KB
testcase_19 AC 83 ms
77,344 KB
testcase_20 AC 81 ms
77,516 KB
testcase_21 AC 98 ms
77,408 KB
testcase_22 AC 78 ms
77,576 KB
testcase_23 AC 75 ms
77,540 KB
testcase_24 AC 100 ms
77,500 KB
testcase_25 AC 105 ms
77,312 KB
testcase_26 AC 134 ms
77,432 KB
testcase_27 AC 83 ms
78,900 KB
testcase_28 AC 134 ms
77,556 KB
testcase_29 AC 81 ms
78,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
cnt = 0
for i in range(2, N):
    if (i * i > N):
        break
    while (N % i == 0):
        cnt += 1
        N /= i
if (N != 1):
    cnt += 1
print "YES" if cnt > 2 else "NO"
0