結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,568 KB
testcase_01 AC 68 ms
71,752 KB
testcase_02 AC 69 ms
71,428 KB
testcase_03 AC 95 ms
75,732 KB
testcase_04 AC 69 ms
75,684 KB
testcase_05 AC 72 ms
75,700 KB
testcase_06 AC 77 ms
75,776 KB
testcase_07 AC 74 ms
75,872 KB
testcase_08 AC 77 ms
75,888 KB
testcase_09 AC 73 ms
75,732 KB
testcase_10 AC 74 ms
75,756 KB
testcase_11 AC 71 ms
75,740 KB
testcase_12 AC 75 ms
75,936 KB
testcase_13 AC 77 ms
75,608 KB
testcase_14 AC 83 ms
75,592 KB
testcase_15 AC 83 ms
75,592 KB
testcase_16 AC 74 ms
75,584 KB
testcase_17 AC 76 ms
75,888 KB
testcase_18 AC 108 ms
75,872 KB
testcase_19 AC 80 ms
75,916 KB
testcase_20 AC 86 ms
76,176 KB
testcase_21 AC 93 ms
75,748 KB
testcase_22 WA -
testcase_23 AC 91 ms
75,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def factorization(n):
    relist = []
    if n == 1:
        relist = 1
    for i in range(2, int(n ** 0.5) + 1): #割る数
        while n % i == 0:
            relist.append(i)
            n /= i
    if n != 1:
        relist.append(int(n))
    return relist    
n = int(input())
if n == 1:
    print('No')
    exit()
print('Yes' if len(set(factorization(n))) <= 2 else 'No')
0