結果

問題 No.2379 Burnside's Theorem
ユーザー 👑 p-adicp-adic
提出日時 2023-05-02 23:20:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 608 ms
コンパイル使用メモリ 87,168 KB
実行使用メモリ 75,948 KB
最終ジャッジ日時 2023-10-14 10:43:10
合計ジャッジ時間 3,911 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,340 KB
testcase_01 AC 70 ms
71,332 KB
testcase_02 AC 71 ms
71,232 KB
testcase_03 AC 71 ms
71,076 KB
testcase_04 AC 89 ms
75,648 KB
testcase_05 AC 72 ms
75,784 KB
testcase_06 AC 70 ms
71,356 KB
testcase_07 AC 72 ms
71,232 KB
testcase_08 AC 90 ms
75,524 KB
testcase_09 AC 70 ms
71,340 KB
testcase_10 AC 92 ms
75,520 KB
testcase_11 AC 71 ms
71,364 KB
testcase_12 AC 91 ms
75,612 KB
testcase_13 AC 88 ms
75,736 KB
testcase_14 AC 88 ms
75,716 KB
testcase_15 AC 88 ms
75,852 KB
testcase_16 AC 74 ms
75,672 KB
testcase_17 AC 91 ms
75,720 KB
testcase_18 AC 92 ms
75,948 KB
testcase_19 AC 71 ms
71,196 KB
testcase_20 AC 72 ms
71,388 KB
testcase_21 AC 72 ms
71,540 KB
testcase_22 AC 88 ms
75,740 KB
testcase_23 AC 73 ms
71,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

R=range
N=int(input())
m=2
M=10**6
for i in R(2):
	s=1
	for p in R(m,M):
		if N%p==0:
			while N%p==0:
				N//=p
			m=p+1
			s=0
			break
	if N==1 or s==1:
		print("Yes")
		exit(0)
print("No")
0