結果

問題 No.2379 Burnside's Theorem
ユーザー 遭難者遭難者
提出日時 2023-07-14 21:58:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 369 ms
コンパイル使用メモリ 87,048 KB
実行使用メモリ 75,952 KB
最終ジャッジ日時 2023-10-14 12:07:31
合計ジャッジ時間 3,086 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
71,220 KB
testcase_01 AC 60 ms
71,376 KB
testcase_02 AC 59 ms
71,368 KB
testcase_03 AC 63 ms
75,472 KB
testcase_04 AC 66 ms
75,672 KB
testcase_05 AC 64 ms
75,628 KB
testcase_06 AC 67 ms
75,952 KB
testcase_07 AC 62 ms
71,300 KB
testcase_08 AC 68 ms
75,476 KB
testcase_09 AC 65 ms
75,476 KB
testcase_10 AC 63 ms
75,640 KB
testcase_11 AC 62 ms
71,216 KB
testcase_12 AC 63 ms
75,660 KB
testcase_13 AC 72 ms
75,576 KB
testcase_14 AC 72 ms
75,756 KB
testcase_15 AC 80 ms
75,552 KB
testcase_16 AC 67 ms
75,692 KB
testcase_17 AC 65 ms
75,732 KB
testcase_18 AC 66 ms
75,432 KB
testcase_19 AC 64 ms
70,972 KB
testcase_20 AC 63 ms
71,120 KB
testcase_21 AC 61 ms
71,316 KB
testcase_22 AC 62 ms
71,224 KB
testcase_23 AC 61 ms
71,224 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
cnt = 0
c = 2
while c * c <= n:
    if n % c == 0:
        while n % c == 0:
            n //= c
        cnt += 1
    c += 1
if n > 1:
    cnt += 1
print("Yes" if cnt <= 2 else "No")
0