結果

問題 No.2379 Burnside's Theorem
ユーザー ikomaikoma
提出日時 2023-07-14 21:23:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 319 ms
コンパイル使用メモリ 86,844 KB
実行使用メモリ 75,740 KB
最終ジャッジ日時 2023-10-14 11:18:03
合計ジャッジ時間 3,271 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,460 KB
testcase_01 AC 72 ms
71,652 KB
testcase_02 AC 72 ms
71,640 KB
testcase_03 AC 80 ms
75,216 KB
testcase_04 AC 76 ms
75,564 KB
testcase_05 AC 76 ms
75,372 KB
testcase_06 AC 77 ms
75,508 KB
testcase_07 AC 76 ms
75,544 KB
testcase_08 AC 75 ms
75,684 KB
testcase_09 AC 75 ms
75,552 KB
testcase_10 AC 76 ms
75,532 KB
testcase_11 AC 76 ms
75,368 KB
testcase_12 AC 75 ms
75,368 KB
testcase_13 AC 86 ms
75,640 KB
testcase_14 AC 86 ms
75,532 KB
testcase_15 AC 86 ms
75,396 KB
testcase_16 AC 76 ms
75,740 KB
testcase_17 AC 76 ms
75,696 KB
testcase_18 AC 87 ms
75,684 KB
testcase_19 AC 79 ms
75,560 KB
testcase_20 AC 83 ms
75,624 KB
testcase_21 AC 86 ms
75,600 KB
testcase_22 AC 72 ms
71,124 KB
testcase_23 AC 87 ms
75,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def factorization(n):
    pf={}
    for i in range(2,int(n**0.5)+1):
        while n%i==0:
            pf[i]=pf.get(i,0)+1
            n//=i
    if n>1:pf[n]=1
    return pf
N=int(input())
fac = factorization(N)
print("Yes" if len(fac)<=2 else "No")
0