結果
| 問題 | No.36 素数が嫌い! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-06-25 10:59:01 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 321 bytes |
| 記録 | |
| コンパイル時間 | 422 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 31,640 KB |
| 最終ジャッジ日時 | 2026-03-07 07:26:34 |
| 合計ジャッジ時間 | 102,077 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 11 TLE * 15 |
ソースコード
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")