結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,644 KB
testcase_01 AC 73 ms
71,548 KB
testcase_02 AC 73 ms
71,596 KB
testcase_03 AC 79 ms
75,792 KB
testcase_04 AC 76 ms
75,400 KB
testcase_05 AC 77 ms
75,404 KB
testcase_06 AC 75 ms
75,352 KB
testcase_07 AC 76 ms
75,796 KB
testcase_08 AC 76 ms
75,500 KB
testcase_09 AC 75 ms
75,740 KB
testcase_10 AC 80 ms
75,568 KB
testcase_11 AC 77 ms
75,772 KB
testcase_12 AC 77 ms
75,344 KB
testcase_13 AC 83 ms
75,420 KB
testcase_14 AC 87 ms
75,416 KB
testcase_15 AC 88 ms
75,816 KB
testcase_16 AC 77 ms
75,396 KB
testcase_17 AC 76 ms
75,852 KB
testcase_18 AC 90 ms
75,844 KB
testcase_19 AC 82 ms
75,856 KB
testcase_20 AC 85 ms
75,384 KB
testcase_21 AC 91 ms
75,400 KB
testcase_22 AC 74 ms
70,916 KB
testcase_23 AC 90 ms
75,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def pfact(m):
	pf = {}
	for i in range(2,int(m**0.5)+1):
		while m%i == 0:
			pf[i] = pf.get(i,0) + 1
			m //= i
	if m>1 : pf[m]=1
	return pf

n = int(input())
r = pfact(n)
if len(r) <= 2:
	print("Yes")
else:
	print("No")
0