結果

問題 No.36 素数が嫌い!
ユーザー threepipes_s
提出日時 2015-12-30 01:36:24
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 2,281 ms / 5,000 ms
コード長 298 bytes
コンパイル時間 140 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-06-27 00:36:29
合計ジャッジ時間 12,337 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
i = 2
count = 0
m = n
while(i*i*i<=n):
    while(m%i==0):
        m /= i
        count += 1
    i+=1
n = m
if(count>0):
    while(i*i<=n):
        while(m%i==0):
            m /= i
            count += 1
        i+=1
if(m>1): count += 1
if(count>2): print("YES")
else: print("NO")
0