結果

問題 No.36 素数が嫌い!
ユーザー vwxyzvwxyz
提出日時 2022-02-17 02:25:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 236 ms / 5,000 ms
コード長 243 bytes
コンパイル時間 1,365 ms
コンパイル使用メモリ 86,432 KB
実行使用メモリ 76,272 KB
最終ジャッジ日時 2023-09-11 17:23:22
合計ジャッジ時間 5,594 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 148 ms
76,020 KB
testcase_01 AC 164 ms
76,088 KB
testcase_02 AC 72 ms
71,732 KB
testcase_03 AC 70 ms
71,464 KB
testcase_04 AC 71 ms
71,704 KB
testcase_05 AC 74 ms
75,920 KB
testcase_06 AC 77 ms
75,968 KB
testcase_07 AC 74 ms
75,972 KB
testcase_08 AC 71 ms
71,992 KB
testcase_09 AC 72 ms
71,564 KB
testcase_10 AC 75 ms
75,948 KB
testcase_11 AC 118 ms
75,812 KB
testcase_12 AC 209 ms
75,812 KB
testcase_13 AC 208 ms
75,680 KB
testcase_14 AC 76 ms
75,876 KB
testcase_15 AC 73 ms
71,820 KB
testcase_16 AC 73 ms
71,624 KB
testcase_17 AC 74 ms
71,356 KB
testcase_18 AC 73 ms
71,360 KB
testcase_19 AC 139 ms
75,912 KB
testcase_20 AC 236 ms
76,272 KB
testcase_21 AC 196 ms
75,932 KB
testcase_22 AC 200 ms
76,196 KB
testcase_23 AC 151 ms
75,956 KB
testcase_24 AC 103 ms
75,692 KB
testcase_25 AC 158 ms
75,972 KB
testcase_26 AC 169 ms
75,952 KB
testcase_27 AC 216 ms
75,916 KB
testcase_28 AC 169 ms
76,200 KB
testcase_29 AC 218 ms
76,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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