結果
| 問題 | No.1218 Something Like a Theorem | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-04-30 23:46:51 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 210 bytes | 
| コンパイル時間 | 290 ms | 
| コンパイル使用メモリ | 81,776 KB | 
| 実行使用メモリ | 76,260 KB | 
| 最終ジャッジ日時 | 2024-07-19 03:56:27 | 
| 合計ジャッジ時間 | 8,136 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 13 TLE * 3 | 
ソースコード
N,Z=map(int,input().split())
if N==1 and 2<=Z:
    print("Yes")
    exit()
for x in range(1,1001):
    for y in range(1,1001):
        if x**N+y**N==Z**N:
            print("Yes")
            exit()
print("No")
            
            
            
        