結果
| 問題 | No.36 素数が嫌い! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-15 14:09:49 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 996 ms / 5,000 ms |
| + 365µs | |
| コード長 | 247 bytes |
| 記録 | |
| コンパイル時間 | 539 ms |
| コンパイル使用メモリ | 21,332 KB |
| 実行使用メモリ | 15,788 KB |
| 最終ジャッジ日時 | 2026-09-05 19:48:40 |
| 合計ジャッジ時間 | 8,947 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
ソースコード
N = int(input())
count = 0
while N % 2 == 0:
count += 1
N //= 2
F = 3
while F * F <= N:
while N % F == 0:
count += 1
N //= F
F += 2
if N != 1:
count += 1
if count >= 3:
print("YES")
else:
print("NO")