結果

問題 No.1218 Something Like a Theorem
ユーザー Keroru
提出日時 2020-09-13 20:02:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 170 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 53,448 KB
最終ジャッジ日時 2024-06-13 04:26:45
合計ジャッジ時間 2,108 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

n,z=map(int,input().split())
k=1
if n==1:
    k=z==1
else:
    a=[x**n for x in range(1,z+1)]
    for x in a:
        if z**n-x in a:
            k=0
print('YNeos'[k::2])
0