結果

問題 No.3248 構築問題
ユーザー i_taku
提出日時 2025-09-01 11:45:29
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 192 bytes
コンパイル時間 458 ms
コンパイル使用メモリ 82,652 KB
実行使用メモリ 53,784 KB
最終ジャッジ日時 2025-09-01 11:45:31
合計ジャッジ時間 1,527 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

n, x = map(int, input().split())
if x == 1:
    print("Yes" if n != 1 else "No")
    exit()
for a in range(1, 10**5):
    if n % pow(a, x) == 0:
        print("Yes")
        exit()
print("No")
0