結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 142 ms
75,964 KB
testcase_01 AC 187 ms
76,160 KB
testcase_02 AC 72 ms
71,396 KB
testcase_03 AC 73 ms
71,556 KB
testcase_04 AC 71 ms
71,536 KB
testcase_05 AC 75 ms
75,916 KB
testcase_06 AC 75 ms
75,980 KB
testcase_07 AC 75 ms
76,292 KB
testcase_08 AC 73 ms
75,976 KB
testcase_09 AC 74 ms
76,032 KB
testcase_10 AC 74 ms
76,012 KB
testcase_11 AC 117 ms
76,076 KB
testcase_12 AC 208 ms
76,076 KB
testcase_13 AC 208 ms
76,184 KB
testcase_14 AC 175 ms
76,336 KB
testcase_15 AC 72 ms
71,676 KB
testcase_16 AC 73 ms
71,564 KB
testcase_17 AC 74 ms
71,468 KB
testcase_18 AC 75 ms
76,080 KB
testcase_19 AC 133 ms
76,176 KB
testcase_20 AC 218 ms
76,032 KB
testcase_21 AC 185 ms
76,296 KB
testcase_22 AC 189 ms
76,100 KB
testcase_23 AC 144 ms
76,056 KB
testcase_24 AC 152 ms
75,728 KB
testcase_25 AC 152 ms
76,104 KB
testcase_26 AC 166 ms
75,980 KB
testcase_27 AC 218 ms
75,904 KB
testcase_28 AC 162 ms
76,012 KB
testcase_29 AC 235 ms
76,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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