結果

問題 No.36 素数が嫌い!
ユーザー vwxyz
提出日時 2022-02-17 02:17:21
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 213 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-06-29 07:26:05
合計ジャッジ時間 11,239 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 24 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
cnt=0
for p in range(2,N):
    if p**2>N:
        print("NO")
        exit()
    while N%p==0:
        N//=p
        cnt+=1
        if cnt==2:
            print("YES")
            exit()
print("NO")
0