結果

問題 No.2379 Burnside's Theorem
ユーザー titiatitia
提出日時 2023-07-14 21:44:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 140 ms / 2,000 ms
コード長 229 bytes
コンパイル時間 1,102 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 7,968 KB
最終ジャッジ日時 2023-10-14 11:49:20
合計ジャッジ時間 2,938 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,760 KB
testcase_01 AC 15 ms
7,796 KB
testcase_02 AC 15 ms
7,796 KB
testcase_03 AC 54 ms
7,804 KB
testcase_04 AC 17 ms
7,720 KB
testcase_05 AC 19 ms
7,864 KB
testcase_06 AC 19 ms
7,788 KB
testcase_07 AC 19 ms
7,772 KB
testcase_08 AC 21 ms
7,760 KB
testcase_09 AC 19 ms
7,776 KB
testcase_10 AC 17 ms
7,836 KB
testcase_11 AC 18 ms
7,872 KB
testcase_12 AC 20 ms
7,760 KB
testcase_13 AC 85 ms
7,864 KB
testcase_14 AC 115 ms
7,812 KB
testcase_15 AC 140 ms
7,772 KB
testcase_16 AC 29 ms
7,764 KB
testcase_17 AC 21 ms
7,784 KB
testcase_18 AC 138 ms
7,816 KB
testcase_19 AC 54 ms
7,852 KB
testcase_20 AC 92 ms
7,968 KB
testcase_21 AC 121 ms
7,720 KB
testcase_22 AC 15 ms
7,764 KB
testcase_23 AC 124 ms
7,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x=int(input())

L=int(x**(1/2))

FACT=dict()

for i in range(2,L+2):
    while x%i==0:
        FACT[i]=FACT.get(i,0)+1
        x=x//i

if x!=1:
    FACT[x]=FACT.get(x,0)+1

if len(FACT)<=2:
    print("Yes")
else:
    print("No")
0