結果

問題 No.2379 Burnside's Theorem
ユーザー Basin-Bug
提出日時 2023-07-16 10:12:27
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 277 bytes
コンパイル時間 455 ms
コンパイル使用メモリ 82,252 KB
実行使用メモリ 67,128 KB
最終ジャッジ日時 2024-09-17 12:39:45
合計ジャッジ時間 2,420 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 4
other RE * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

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

for i in range(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