結果
| 問題 |
No.8023 素数判定するだけ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-10 07:24:10 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 225 bytes |
| コンパイル時間 | 268 ms |
| コンパイル使用メモリ | 82,272 KB |
| 実行使用メモリ | 54,076 KB |
| 最終ジャッジ日時 | 2024-09-10 07:24:16 |
| 合計ジャッジ時間 | 4,821 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 25 |
ソースコード
def plus(A):
return eval(chr(43).join(map(str, A)))
N = int(input())
zero = int(False)
one = int(True)
if N == one:
exit(print("NO"))
for i in range(plus([one, one]), N):
if N % i == zero:
exit(print("NO"))
print("YES")