結果

問題 No.1218 Something Like a Theorem
ユーザー NoaSaberNoaSaber
提出日時 2021-04-30 23:46:51
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 210 bytes
コンパイル時間 511 ms
コンパイル使用メモリ 86,916 KB
実行使用メモリ 77,556 KB
最終ジャッジ日時 2023-09-26 08:55:25
合計ジャッジ時間 10,716 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
75,600 KB
testcase_01 AC 84 ms
76,080 KB
testcase_02 AC 77 ms
76,236 KB
testcase_03 AC 71 ms
71,284 KB
testcase_04 AC 70 ms
71,392 KB
testcase_05 AC 72 ms
71,272 KB
testcase_06 AC 80 ms
75,944 KB
testcase_07 AC 76 ms
76,156 KB
testcase_08 AC 78 ms
76,164 KB
testcase_09 AC 79 ms
76,204 KB
testcase_10 AC 75 ms
75,596 KB
testcase_11 AC 79 ms
76,160 KB
testcase_12 AC 77 ms
75,648 KB
testcase_13 AC 82 ms
76,080 KB
testcase_14 AC 83 ms
76,236 KB
testcase_15 TLE -
testcase_16 TLE -
testcase_17 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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")
0