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