結果

問題 No.2379 Burnside's Theorem
ユーザー hato336hato336
提出日時 2023-07-14 21:25:54
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 334 bytes
コンパイル時間 295 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 79,132 KB
最終ジャッジ日時 2023-10-14 11:22:56
合計ジャッジ時間 3,334 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,644 KB
testcase_01 WA -
testcase_02 AC 66 ms
71,844 KB
testcase_03 AC 84 ms
75,784 KB
testcase_04 WA -
testcase_05 AC 72 ms
75,936 KB
testcase_06 AC 72 ms
75,992 KB
testcase_07 AC 70 ms
75,852 KB
testcase_08 AC 74 ms
75,768 KB
testcase_09 AC 71 ms
75,916 KB
testcase_10 AC 70 ms
76,084 KB
testcase_11 AC 72 ms
75,864 KB
testcase_12 AC 73 ms
75,860 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 74 ms
75,700 KB
testcase_18 AC 107 ms
76,124 KB
testcase_19 AC 79 ms
75,976 KB
testcase_20 AC 86 ms
75,776 KB
testcase_21 AC 94 ms
75,792 KB
testcase_22 RE -
testcase_23 AC 95 ms
75,840 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    
print('Yes' if len(set(factorization(int(input())))) == 2 else 'No')
0