結果

問題 No.2379 Burnside's Theorem
ユーザー ああいいああいい
提出日時 2023-07-14 22:01:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 524 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 76,136 KB
最終ジャッジ日時 2023-10-14 12:12:11
合計ジャッジ時間 3,034 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,348 KB
testcase_01 AC 68 ms
71,288 KB
testcase_02 AC 67 ms
71,048 KB
testcase_03 AC 68 ms
71,368 KB
testcase_04 AC 72 ms
71,312 KB
testcase_05 AC 70 ms
75,508 KB
testcase_06 AC 69 ms
71,200 KB
testcase_07 AC 68 ms
71,236 KB
testcase_08 WA -
testcase_09 AC 69 ms
71,196 KB
testcase_10 WA -
testcase_11 AC 67 ms
71,144 KB
testcase_12 WA -
testcase_13 AC 68 ms
71,304 KB
testcase_14 AC 66 ms
71,280 KB
testcase_15 AC 67 ms
71,160 KB
testcase_16 AC 67 ms
71,284 KB
testcase_17 WA -
testcase_18 AC 68 ms
71,412 KB
testcase_19 AC 68 ms
71,060 KB
testcase_20 AC 68 ms
71,164 KB
testcase_21 AC 65 ms
71,348 KB
testcase_22 AC 66 ms
71,304 KB
testcase_23 AC 66 ms
71,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

import sys
p = -1
a = 0
for i in range(2,10 * 6 + 1):
    if N % i == 0:
        p = i
        while N % i == 0:
            N //= i
            a += 1
        break
    
if p == -1:
    print('Yes')
    exit()
if N == 1:
    print('Yes')
    exit()
else:
    q = -1
    b = 0
    for i in range(2,10 ** 6 + 1):
        if N % i == 0:
            while N % i == 0:
                N //= i
            if N == 1:
                print('Yes')
            else:
                print('No')
            exit()
0