結果

問題 No.3248 構築問題
ユーザー i_taku
提出日時 2025-09-01 11:46:04
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 216 bytes
コンパイル時間 437 ms
コンパイル使用メモリ 82,656 KB
実行使用メモリ 214,552 KB
最終ジャッジ日時 2025-09-01 11:46:12
合計ジャッジ時間 7,197 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other TLE * 1 -- * 9
権限があれば一括ダウンロードができます

ソースコード

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 and n // pow(a, x) != a:
        print("Yes")
        exit()
print("No")
0