結果
| 問題 | No.36 素数が嫌い! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-04-15 14:09:49 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 1,060 ms / 5,000 ms |
| コード長 | 247 bytes |
| 記録 | |
| コンパイル時間 | 927 ms |
| コンパイル使用メモリ | 20,712 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-15 14:10:06 |
| 合計ジャッジ時間 | 12,168 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")