結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
あかりき
|
| 提出日時 | 2021-02-08 09:53:27 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 156 ms / 5,000 ms |
| コード長 | 216 bytes |
| コンパイル時間 | 179 ms |
| コンパイル使用メモリ | 82,536 KB |
| 実行使用メモリ | 57,728 KB |
| 最終ジャッジ日時 | 2024-07-05 06:11:30 |
| 合計ジャッジ時間 | 2,712 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
ソースコード
n=int(input())
def fact(n):
b=2
fct=[]
while b*b<=n:
while n%b==0:
n//=b
fct.append(b)
b=b+1
if n>1:
fct.append(n)
return fct
if len(fact(n))>=3:
print('YES')
else:
print('NO')
あかりき