結果

問題 No.1218 Something Like a Theorem
ユーザー Mottchan
提出日時 2023-03-26 19:38:39
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 274 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 66,688 KB
最終ジャッジ日時 2024-09-19 09:57:44
合計ジャッジ時間 3,881 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 3 TLE * 1 -- * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

n,z=map(int,input().split())
a=0
for x in range(1,10**5):
    for y in range(x,10**5):
        if x ** n + y ** n == z ** n:
            a+=1
            break        
        elif x ** n + y ** n > z ** n:
            break

if a > 0:
    print('Yes')
else:
    print('No')
0