結果
| 問題 | No.36 素数が嫌い! |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-15 13:58:44 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 931 ms / 5,000 ms |
| コード長 | 183 bytes |
| 記録 | |
| コンパイル時間 | 339 ms |
| コンパイル使用メモリ | 20,704 KB |
| 実行使用メモリ | 15,452 KB |
| 最終ジャッジ日時 | 2026-03-25 22:07:14 |
| 合計ジャッジ時間 | 14,203 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
ソースコード
N = int(input())
ans = 0
for i in range(2, int(N**0.5)+1):
while N%i==0:
N //= i
ans += 1
if N!=1:
ans += 1
if ans >= 3:
print("YES")
else:
print("NO")