結果

問題 No.2379 Burnside's Theorem
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2023-07-14 22:24:46
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 166 ms
コンパイル使用メモリ 82,444 KB
実行使用メモリ 57,984 KB
最終ジャッジ日時 2024-09-16 07:29:56
合計ジャッジ時間 2,077 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
divs = []
for i in range(2,int(n**0.5)+1):
	if n%i == 0:
		divs.append(i)
		while n%i == 0:
			n //= i

if n != 1:
	divs.append(n)

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