結果
| 問題 | No.1218 Something Like a Theorem | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-04-30 23:45:50 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 201 bytes | 
| コンパイル時間 | 1,032 ms | 
| コンパイル使用メモリ | 82,304 KB | 
| 実行使用メモリ | 76,288 KB | 
| 最終ジャッジ日時 | 2024-07-19 03:55:16 | 
| 合計ジャッジ時間 | 9,496 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 12 WA * 1 TLE * 3 | 
ソースコード
N,Z=map(int,input().split())
if N==1:
    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")
            
            
            
        