結果

問題 No.36 素数が嫌い!
ユーザー vwxyzvwxyz
提出日時 2022-02-17 01:59:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 206 ms / 5,000 ms
コード長 219 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 86,764 KB
実行使用メモリ 75,876 KB
最終ジャッジ日時 2023-09-11 17:21:48
合計ジャッジ時間 4,508 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
75,704 KB
testcase_01 AC 77 ms
75,500 KB
testcase_02 AC 70 ms
71,084 KB
testcase_03 AC 72 ms
71,100 KB
testcase_04 AC 70 ms
71,244 KB
testcase_05 AC 75 ms
75,648 KB
testcase_06 AC 74 ms
75,736 KB
testcase_07 AC 75 ms
75,648 KB
testcase_08 AC 71 ms
71,196 KB
testcase_09 AC 70 ms
71,016 KB
testcase_10 AC 73 ms
75,784 KB
testcase_11 AC 115 ms
75,516 KB
testcase_12 AC 206 ms
75,876 KB
testcase_13 AC 204 ms
75,564 KB
testcase_14 AC 73 ms
75,732 KB
testcase_15 AC 72 ms
71,300 KB
testcase_16 AC 69 ms
71,248 KB
testcase_17 AC 68 ms
71,048 KB
testcase_18 AC 69 ms
71,048 KB
testcase_19 AC 79 ms
75,620 KB
testcase_20 AC 76 ms
75,628 KB
testcase_21 AC 95 ms
75,624 KB
testcase_22 AC 75 ms
75,640 KB
testcase_23 AC 74 ms
75,504 KB
testcase_24 AC 97 ms
75,568 KB
testcase_25 AC 102 ms
75,644 KB
testcase_26 AC 131 ms
75,728 KB
testcase_27 AC 75 ms
75,640 KB
testcase_28 AC 130 ms
75,808 KB
testcase_29 AC 75 ms
75,636 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
cnt=0
for p in range(2,N):
    while N%p==0:
        N//=p
        cnt+=1
    if N==1:
        break
    if p**2>N:
        break
if N!=1:
    cnt+=1
if cnt>=3:
    ans='YES'
else:
    ans='NO'
print(ans)
0