結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
![]() |
提出日時 | 2021-06-22 01:38:48 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 167 ms / 5,000 ms |
コード長 | 302 bytes |
コンパイル時間 | 300 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 59,520 KB |
最終ジャッジ日時 | 2024-06-22 23:01:52 |
合計ジャッジ時間 | 3,007 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 26 |
ソースコード
from math import sqrt n = int(input()) div = 2 fact = list() while div < int(sqrt(n))+1 and n > 1: if n % div == 0: while n % div == 0: fact.append(div) n //= div div += 1 if n > 1: fact.append(n) if len(fact) >= 3: print("YES") else: print("NO")