結果

問題 No.2379 Burnside's Theorem
ユーザー 👑 p-adicp-adic
提出日時 2023-05-02 23:20:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 157 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 8,204 KB
最終ジャッジ日時 2023-10-14 10:42:38
合計ジャッジ時間 2,809 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
8,080 KB
testcase_01 AC 16 ms
8,124 KB
testcase_02 AC 15 ms
7,784 KB
testcase_03 AC 16 ms
7,820 KB
testcase_04 AC 140 ms
8,096 KB
testcase_05 AC 15 ms
7,776 KB
testcase_06 AC 16 ms
7,920 KB
testcase_07 AC 16 ms
7,848 KB
testcase_08 AC 139 ms
8,128 KB
testcase_09 AC 16 ms
7,820 KB
testcase_10 AC 135 ms
8,052 KB
testcase_11 AC 16 ms
7,852 KB
testcase_12 AC 134 ms
8,148 KB
testcase_13 AC 157 ms
8,120 KB
testcase_14 AC 155 ms
8,200 KB
testcase_15 AC 152 ms
8,092 KB
testcase_16 AC 30 ms
8,132 KB
testcase_17 AC 136 ms
8,132 KB
testcase_18 AC 141 ms
8,120 KB
testcase_19 AC 16 ms
7,864 KB
testcase_20 AC 15 ms
7,820 KB
testcase_21 AC 15 ms
7,852 KB
testcase_22 AC 125 ms
8,120 KB
testcase_23 AC 16 ms
8,204 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