結果

問題 No.3248 構築問題
ユーザー 回転
提出日時 2025-08-29 22:19:24
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 489 bytes
コンパイル時間 500 ms
コンパイル使用メモリ 82,852 KB
実行使用メモリ 61,220 KB
最終ジャッジ日時 2025-08-29 22:19:59
合計ジャッジ時間 1,366 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
N,X = list(map(int,input().split()))

def prime_factorize(n):
    # https://note.nkmk.me/python-prime-factorization/
    a = defaultdict(int)
    while n % 2 == 0:
        a[2] += 1
        n //= 2
    f = 3
    while f * f <= n:
        if n % f == 0:
            a[f] += 1
            n //= f
        else:
            f += 2
    if n != 1:
        a[n] += 1
    return a

a = prime_factorize(N)
a[0] = 0
print("Yes" if max(a.values()) >= X else "No")
0