結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
![]() |
提出日時 | 2020-09-19 10:35:29 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 178 ms / 5,000 ms |
コード長 | 271 bytes |
コンパイル時間 | 1,068 ms |
コンパイル使用メモリ | 82,268 KB |
実行使用メモリ | 58,240 KB |
最終ジャッジ日時 | 2024-06-23 07:41:24 |
合計ジャッジ時間 | 4,219 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 26 |
ソースコード
N=int(input()) if N<=7: print("NO") exit() cnt=0 for i in range(2,int(N**0.5)+2): while N%i==0: cnt+=1 N//=i if cnt==3: print("YES") exit() if N>1: if cnt>=2: print("YES") exit() print("NO")