結果

問題 No.2379 Burnside's Theorem
ユーザー ryohei22ryohei22
提出日時 2023-07-14 22:48:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 486 ms
コンパイル使用メモリ 86,796 KB
実行使用メモリ 75,832 KB
最終ジャッジ日時 2023-10-14 13:06:02
合計ジャッジ時間 3,661 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,360 KB
testcase_01 AC 70 ms
71,260 KB
testcase_02 AC 70 ms
71,132 KB
testcase_03 AC 82 ms
75,824 KB
testcase_04 AC 73 ms
75,428 KB
testcase_05 AC 72 ms
75,740 KB
testcase_06 AC 73 ms
75,592 KB
testcase_07 AC 72 ms
70,916 KB
testcase_08 AC 74 ms
75,828 KB
testcase_09 AC 74 ms
75,744 KB
testcase_10 AC 76 ms
75,452 KB
testcase_11 AC 69 ms
70,992 KB
testcase_12 AC 73 ms
75,516 KB
testcase_13 AC 79 ms
75,760 KB
testcase_14 AC 83 ms
75,532 KB
testcase_15 AC 84 ms
75,688 KB
testcase_16 AC 73 ms
75,760 KB
testcase_17 AC 73 ms
75,748 KB
testcase_18 AC 73 ms
75,832 KB
testcase_19 AC 69 ms
71,000 KB
testcase_20 AC 69 ms
70,920 KB
testcase_21 AC 68 ms
71,036 KB
testcase_22 AC 68 ms
71,128 KB
testcase_23 AC 69 ms
71,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

cnt = 0
lst = []
for i in range(2, N+1):
	if N < i**2:
		break
	if N % i == 0:
		while N % i == 0:
			N //= i
			lst.append(i)
		cnt += 1
if N != 1:
	cnt += 1
if cnt <= 2:
	print('Yes')
else:
	print('No')
0