結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
|
提出日時 | 2019-06-25 10:59:01 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 321 bytes |
コンパイル時間 | 205 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 16,128 KB |
最終ジャッジ日時 | 2024-06-22 23:37:14 |
合計ジャッジ時間 | 12,568 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 4 |
other | TLE * 1 -- * 25 |
ソースコード
def f(R): if R == 1: return [] i = 2 l = [] while True: if R % i == 0: R = R / i l.append(i) if R == 1: break else: i += 1 return l N = int(input()) l = f(N) if len(l) <= 2: print("NO") else: print("YES")