結果

問題 No.36 素数が嫌い!
ユーザー szkhtsszkhts
提出日時 2021-08-07 17:17:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 284 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 11,800 KB
実行使用メモリ 595,128 KB
最終ジャッジ日時 2023-10-18 23:36:31
合計ジャッジ時間 7,671 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 29 ms
10,032 KB
testcase_03 AC 30 ms
10,032 KB
testcase_04 AC 29 ms
10,032 KB
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 MLE -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
N += 1
tbl = [0] * N

for i in range(2, N):
    if tbl[i] == 0:
        for j in range(i * 2, N, i):
            tbl[j] = -1

judge = 'NO'
for i in range(len(tbl)):
    if tbl[i] == -1:
        if N % i == 0:
            judge = 'YES'
            break

print(judge)
0