結果

問題 No.2379 Burnside's Theorem
ユーザー shogo314shogo314
提出日時 2023-07-14 21:26:38
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 336 bytes
コンパイル時間 914 ms
コンパイル使用メモリ 86,800 KB
実行使用メモリ 84,336 KB
最終ジャッジ日時 2023-10-14 11:23:35
合計ジャッジ時間 4,204 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
84,080 KB
testcase_01 AC 118 ms
83,940 KB
testcase_02 AC 118 ms
84,052 KB
testcase_03 AC 118 ms
84,048 KB
testcase_04 AC 120 ms
84,068 KB
testcase_05 AC 119 ms
84,048 KB
testcase_06 WA -
testcase_07 AC 119 ms
84,180 KB
testcase_08 AC 119 ms
83,936 KB
testcase_09 WA -
testcase_10 AC 118 ms
84,168 KB
testcase_11 AC 121 ms
84,076 KB
testcase_12 AC 121 ms
84,068 KB
testcase_13 AC 118 ms
84,192 KB
testcase_14 AC 117 ms
84,184 KB
testcase_15 AC 117 ms
84,184 KB
testcase_16 AC 120 ms
84,336 KB
testcase_17 AC 118 ms
84,332 KB
testcase_18 AC 120 ms
84,180 KB
testcase_19 AC 119 ms
83,840 KB
testcase_20 AC 120 ms
84,196 KB
testcase_21 AC 117 ms
84,160 KB
testcase_22 AC 118 ms
84,136 KB
testcase_23 AC 118 ms
84,044 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MAX=10**6
prime=[True for i in range(MAX+1)]
prime[0]=prime[1]=False
for i in range(2,MAX+1):
    if not prime[i]:
        continue
    for j in range(2,MAX//i+1):
        prime[i*j]=False
N=int(input())
tmp=0
for i,p in enumerate(prime):
    if p:
        if N%i==0:
            tmp+=1
if tmp<=2:
    print('Yes')
else:
    print('No')
0