結果

問題 No.2379 Burnside's Theorem
ユーザー miho-4miho-4
提出日時 2023-07-14 21:24:25
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 141 bytes
コンパイル時間 403 ms
コンパイル使用メモリ 87,176 KB
実行使用メモリ 75,808 KB
最終ジャッジ日時 2023-10-14 11:20:47
合計ジャッジ時間 3,655 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
75,384 KB
testcase_01 AC 91 ms
75,428 KB
testcase_02 AC 96 ms
75,516 KB
testcase_03 AC 91 ms
75,100 KB
testcase_04 AC 87 ms
75,444 KB
testcase_05 AC 93 ms
75,420 KB
testcase_06 AC 92 ms
75,424 KB
testcase_07 AC 92 ms
75,120 KB
testcase_08 AC 94 ms
75,068 KB
testcase_09 AC 92 ms
75,680 KB
testcase_10 AC 92 ms
75,424 KB
testcase_11 AC 90 ms
75,380 KB
testcase_12 AC 91 ms
75,440 KB
testcase_13 AC 86 ms
75,376 KB
testcase_14 AC 86 ms
75,620 KB
testcase_15 AC 86 ms
75,684 KB
testcase_16 AC 89 ms
75,708 KB
testcase_17 AC 90 ms
75,512 KB
testcase_18 AC 91 ms
75,524 KB
testcase_19 AC 90 ms
75,424 KB
testcase_20 AC 91 ms
75,508 KB
testcase_21 AC 90 ms
75,424 KB
testcase_22 WA -
testcase_23 AC 95 ms
75,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
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