結果
問題 |
No.8023 素数判定するだけ
|
ユーザー |
|
提出日時 | 2024-09-10 07:25:59 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 419 ms |
コンパイル使用メモリ | 82,308 KB |
実行使用メモリ | 54,020 KB |
最終ジャッジ日時 | 2024-09-10 07:26:05 |
合計ジャッジ時間 | 5,547 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 25 |
ソースコード
zero = int(False) one = int(True) forty_three = int(str(one) + str(zero) + str(one) + str(zero) + str(one) + str(one), 2) 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")