結果

問題 No.2379 Burnside's Theorem
ユーザー Basin-BugBasin-Bug
提出日時 2023-07-16 10:13:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 280 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 81,600 KB
実行使用メモリ 59,724 KB
最終ジャッジ日時 2023-10-17 14:54:48
合計ジャッジ時間 2,282 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
53,628 KB
testcase_01 AC 41 ms
53,628 KB
testcase_02 AC 39 ms
53,628 KB
testcase_03 AC 46 ms
59,720 KB
testcase_04 AC 42 ms
59,716 KB
testcase_05 AC 42 ms
59,720 KB
testcase_06 AC 42 ms
59,720 KB
testcase_07 AC 42 ms
59,720 KB
testcase_08 AC 42 ms
59,720 KB
testcase_09 AC 41 ms
59,720 KB
testcase_10 AC 40 ms
59,720 KB
testcase_11 AC 41 ms
59,720 KB
testcase_12 AC 42 ms
59,720 KB
testcase_13 AC 47 ms
59,716 KB
testcase_14 AC 50 ms
59,716 KB
testcase_15 AC 53 ms
59,716 KB
testcase_16 AC 42 ms
59,716 KB
testcase_17 AC 41 ms
59,720 KB
testcase_18 AC 57 ms
59,724 KB
testcase_19 AC 46 ms
59,720 KB
testcase_20 AC 50 ms
59,720 KB
testcase_21 AC 54 ms
59,720 KB
testcase_22 AC 38 ms
53,404 KB
testcase_23 AC 55 ms
59,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
N = int(input())
primes = []

for i in range(2, int(N ** 0.5) + 1):
  while N % i == 0:
  	primes.append(i)
  	N //= i

if N >= 2:
  primes.append(N)

cnt_kinds = Counter(primes)
if len(list(cnt_kinds.keys())) <= 2:
	print("Yes")
else:
	print("No")
0