結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
75,948 KB
testcase_01 AC 185 ms
75,932 KB
testcase_02 AC 71 ms
71,720 KB
testcase_03 AC 71 ms
71,548 KB
testcase_04 AC 69 ms
71,488 KB
testcase_05 AC 71 ms
76,088 KB
testcase_06 AC 73 ms
75,908 KB
testcase_07 AC 73 ms
75,892 KB
testcase_08 AC 72 ms
75,924 KB
testcase_09 AC 72 ms
75,764 KB
testcase_10 AC 73 ms
75,872 KB
testcase_11 AC 117 ms
75,800 KB
testcase_12 AC 208 ms
75,904 KB
testcase_13 AC 203 ms
75,808 KB
testcase_14 AC 173 ms
75,692 KB
testcase_15 AC 70 ms
71,400 KB
testcase_16 AC 74 ms
71,312 KB
testcase_17 AC 74 ms
71,228 KB
testcase_18 AC 71 ms
75,880 KB
testcase_19 AC 129 ms
75,716 KB
testcase_20 AC 216 ms
75,992 KB
testcase_21 AC 179 ms
75,888 KB
testcase_22 AC 182 ms
75,944 KB
testcase_23 AC 142 ms
75,868 KB
testcase_24 AC 149 ms
75,920 KB
testcase_25 AC 146 ms
75,872 KB
testcase_26 AC 160 ms
75,716 KB
testcase_27 AC 211 ms
75,828 KB
testcase_28 AC 159 ms
75,868 KB
testcase_29 AC 229 ms
75,968 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:
    cnt+=1
if cnt>=3:
    ans='YES'
else:
    ans='NO'
print(ans)
0