結果

問題 No.2379 Burnside's Theorem
ユーザー hato336
提出日時 2023-07-14 21:25:54
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 334 bytes
コンパイル時間 342 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 72,064 KB
最終ジャッジ日時 2024-09-16 06:13:38
合計ジャッジ時間 2,573 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 14 WA * 5 RE * 1
権限があれば一括ダウンロードができます

ソースコード

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