結果

問題 No.2379 Burnside's Theorem
ユーザー eve__fuyuki
提出日時 2023-10-10 16:46:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 203 bytes
コンパイル時間 313 ms
コンパイル使用メモリ 82,376 KB
実行使用メモリ 59,040 KB
最終ジャッジ日時 2024-09-13 00:17:48
合計ジャッジ時間 2,255 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
cnt = 0

p = 2
while p * p <= n:
    if n % p == 0:
        cnt += 1
        while n % p == 0:
            n //= p

    p += 1

if n > 1:
    cnt += 1

print("Yes" if cnt <= 2 else "No")
0