結果

問題 No.36 素数が嫌い!
ユーザー takakintakakin
提出日時 2020-04-13 21:54:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 194 ms / 5,000 ms
コード長 241 bytes
コンパイル時間 1,318 ms
コンパイル使用メモリ 81,632 KB
実行使用メモリ 59,788 KB
最終ジャッジ日時 2023-10-26 02:24:13
合計ジャッジ時間 5,028 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
57,732 KB
testcase_01 AC 144 ms
57,732 KB
testcase_02 AC 40 ms
53,692 KB
testcase_03 AC 40 ms
53,692 KB
testcase_04 AC 41 ms
53,692 KB
testcase_05 AC 43 ms
57,732 KB
testcase_06 AC 46 ms
59,788 KB
testcase_07 AC 42 ms
57,728 KB
testcase_08 AC 43 ms
57,732 KB
testcase_09 AC 43 ms
57,732 KB
testcase_10 AC 42 ms
57,732 KB
testcase_11 AC 85 ms
57,728 KB
testcase_12 AC 173 ms
57,728 KB
testcase_13 AC 173 ms
57,728 KB
testcase_14 AC 141 ms
59,788 KB
testcase_15 AC 40 ms
53,692 KB
testcase_16 AC 41 ms
53,692 KB
testcase_17 AC 41 ms
53,484 KB
testcase_18 AC 42 ms
57,732 KB
testcase_19 AC 93 ms
57,732 KB
testcase_20 AC 171 ms
57,732 KB
testcase_21 AC 141 ms
57,732 KB
testcase_22 AC 144 ms
57,732 KB
testcase_23 AC 103 ms
57,732 KB
testcase_24 AC 109 ms
57,732 KB
testcase_25 AC 109 ms
57,732 KB
testcase_26 AC 119 ms
57,732 KB
testcase_27 AC 176 ms
59,788 KB
testcase_28 AC 119 ms
57,732 KB
testcase_29 AC 194 ms
59,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
n=int(input())
pf={}
for i in range(2,int(n**0.5)+1):
  while n%i==0:
    pf[i]=pf.get(i,0)+1
    n//=i
if n>1:
  pf[n]=1
nn=sum(pf.values())
if nn<=2:
  print("NO")
else:
  print("YES")
0