結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
vwxyz
|
| 提出日時 | 2022-02-17 01:59:48 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 152 ms / 5,000 ms |
| コード長 | 219 bytes |
| コンパイル時間 | 126 ms |
| コンパイル使用メモリ | 82,316 KB |
| 実行使用メモリ | 59,776 KB |
| 最終ジャッジ日時 | 2024-06-29 07:25:00 |
| 合計ジャッジ時間 | 2,655 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
ソースコード
N=int(input())
cnt=0
for p in range(2,N):
while N%p==0:
N//=p
cnt+=1
if N==1:
break
if p**2>N:
break
if N!=1:
cnt+=1
if cnt>=3:
ans='YES'
else:
ans='NO'
print(ans)
vwxyz