結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-08 10:28:41 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 168 ms / 5,000 ms |
| コード長 | 348 bytes |
| コンパイル時間 | 164 ms |
| コンパイル使用メモリ | 82,328 KB |
| 実行使用メモリ | 59,636 KB |
| 最終ジャッジ日時 | 2024-10-09 19:36:34 |
| 合計ジャッジ時間 | 3,915 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
ソースコード
N=int(input())
def divisor_enu(N):
l=[]
for i in range(2,int(N**0.5)+1):
cnt=0
if N%i==0:
while N%i==0:
cnt+=1
N//=i
l.append((i,cnt))
if N != 1:
l.append((N,1))
return l
x=divisor_enu(N)
ans=0
for i,j in x:
ans+=j
print("YES" if ans>=3 else "NO")