結果

問題 No.2379 Burnside's Theorem
ユーザー miho-4miho-4
提出日時 2023-07-14 21:25:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 171 bytes
コンパイル時間 233 ms
コンパイル使用メモリ 87,092 KB
実行使用メモリ 75,824 KB
最終ジャッジ日時 2023-10-14 11:22:31
合計ジャッジ時間 3,335 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
75,756 KB
testcase_01 AC 82 ms
75,684 KB
testcase_02 AC 83 ms
75,760 KB
testcase_03 AC 84 ms
75,764 KB
testcase_04 AC 81 ms
75,764 KB
testcase_05 AC 83 ms
75,456 KB
testcase_06 AC 85 ms
75,676 KB
testcase_07 AC 87 ms
75,756 KB
testcase_08 AC 85 ms
75,748 KB
testcase_09 AC 86 ms
75,772 KB
testcase_10 AC 83 ms
75,612 KB
testcase_11 AC 83 ms
75,748 KB
testcase_12 AC 84 ms
75,456 KB
testcase_13 AC 82 ms
75,668 KB
testcase_14 AC 80 ms
75,784 KB
testcase_15 AC 82 ms
75,584 KB
testcase_16 AC 83 ms
75,604 KB
testcase_17 AC 84 ms
75,588 KB
testcase_18 AC 87 ms
75,704 KB
testcase_19 AC 83 ms
75,728 KB
testcase_20 AC 84 ms
75,824 KB
testcase_21 AC 85 ms
75,688 KB
testcase_22 AC 68 ms
71,352 KB
testcase_23 AC 84 ms
75,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
if n==1:
  exit(print("Yes"))
S=set()
for i in range(2,10**6):
  while n%i==0:
    n//=i
    S.add(i)
S.add(n)
S-={1}
print("Yes" if 1<=len(S)<=2 else "No")
0