結果
| 問題 | No.36 素数が嫌い! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-06-25 10:59:01 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 321 bytes |
| 記録 | |
| コンパイル時間 | 299 ms |
| コンパイル使用メモリ | 21,408 KB |
| 実行使用メモリ | 22,264 KB |
| 最終ジャッジ日時 | 2026-07-27 11:21:16 |
| 合計ジャッジ時間 | 13,218 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")