結果
| 問題 |
No.8023 素数判定するだけ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-12 17:01:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 291 bytes |
| コンパイル時間 | 168 ms |
| コンパイル使用メモリ | 82,116 KB |
| 実行使用メモリ | 53,980 KB |
| 最終ジャッジ日時 | 2024-11-21 09:53:10 |
| 合計ジャッジ時間 | 4,843 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 25 |
ソースコード
n = int(input())
f = True
s = True
p = True
if not(1 ^ n):
print("NO")
exit()
for i in range(n):
if f:
f = False
continue
if s:
s = False
continue
if p and not(n % i) and n != i:
p = False
if p:
print("YES")
else:
print("NO")