結果

問題 No.2379 Burnside's Theorem
ユーザー eve__fuyukieve__fuyuki
提出日時 2023-10-10 16:46:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 203 bytes
コンパイル時間 486 ms
コンパイル使用メモリ 87,180 KB
実行使用メモリ 76,196 KB
最終ジャッジ日時 2023-10-10 16:46:11
合計ジャッジ時間 5,408 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
71,608 KB
testcase_01 AC 70 ms
71,524 KB
testcase_02 AC 70 ms
71,480 KB
testcase_03 AC 75 ms
75,872 KB
testcase_04 AC 76 ms
75,824 KB
testcase_05 AC 76 ms
75,928 KB
testcase_06 AC 74 ms
76,168 KB
testcase_07 AC 72 ms
71,204 KB
testcase_08 AC 75 ms
76,016 KB
testcase_09 AC 74 ms
76,020 KB
testcase_10 AC 74 ms
75,980 KB
testcase_11 AC 69 ms
71,488 KB
testcase_12 AC 73 ms
75,864 KB
testcase_13 AC 88 ms
75,676 KB
testcase_14 AC 84 ms
75,940 KB
testcase_15 AC 87 ms
75,844 KB
testcase_16 AC 77 ms
75,956 KB
testcase_17 AC 75 ms
76,196 KB
testcase_18 AC 76 ms
75,928 KB
testcase_19 AC 71 ms
71,540 KB
testcase_20 AC 72 ms
71,672 KB
testcase_21 AC 72 ms
71,456 KB
testcase_22 AC 71 ms
71,472 KB
testcase_23 AC 73 ms
71,608 KB
権限があれば一括ダウンロードができます

ソースコード

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