結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 151 ms
75,832 KB
testcase_01 AC 162 ms
76,004 KB
testcase_02 AC 69 ms
71,404 KB
testcase_03 AC 70 ms
71,396 KB
testcase_04 AC 70 ms
71,572 KB
testcase_05 AC 74 ms
75,816 KB
testcase_06 AC 74 ms
75,872 KB
testcase_07 AC 71 ms
75,904 KB
testcase_08 AC 71 ms
71,636 KB
testcase_09 AC 70 ms
71,720 KB
testcase_10 AC 73 ms
75,700 KB
testcase_11 AC 120 ms
75,944 KB
testcase_12 AC 203 ms
76,240 KB
testcase_13 AC 203 ms
75,716 KB
testcase_14 AC 71 ms
75,944 KB
testcase_15 AC 73 ms
71,580 KB
testcase_16 AC 71 ms
71,568 KB
testcase_17 AC 70 ms
71,544 KB
testcase_18 AC 70 ms
71,416 KB
testcase_19 AC 134 ms
75,888 KB
testcase_20 AC 230 ms
75,712 KB
testcase_21 AC 194 ms
75,960 KB
testcase_22 AC 198 ms
75,812 KB
testcase_23 AC 150 ms
76,028 KB
testcase_24 AC 102 ms
76,280 KB
testcase_25 AC 153 ms
75,936 KB
testcase_26 AC 166 ms
75,796 KB
testcase_27 AC 210 ms
75,896 KB
testcase_28 AC 170 ms
75,876 KB
testcase_29 AC 226 ms
75,756 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==1:
        break
if N!=1:
    cnt+=1
if cnt>=3:
    ans='YES'
else:
    ans='NO'
print(ans)
0