結果

問題 No.1218 Something Like a Theorem
ユーザー NoaSaberNoaSaber
提出日時 2021-04-30 23:45:50
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 201 bytes
コンパイル時間 569 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 77,376 KB
最終ジャッジ日時 2023-09-26 08:54:11
合計ジャッジ時間 11,104 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
75,780 KB
testcase_01 AC 84 ms
76,220 KB
testcase_02 WA -
testcase_03 AC 73 ms
71,336 KB
testcase_04 AC 72 ms
71,416 KB
testcase_05 AC 72 ms
71,228 KB
testcase_06 AC 79 ms
76,232 KB
testcase_07 AC 77 ms
76,200 KB
testcase_08 AC 77 ms
76,180 KB
testcase_09 AC 79 ms
76,108 KB
testcase_10 AC 75 ms
75,744 KB
testcase_11 AC 79 ms
76,352 KB
testcase_12 AC 75 ms
75,768 KB
testcase_13 AC 81 ms
76,368 KB
testcase_14 AC 81 ms
76,272 KB
testcase_15 TLE -
testcase_16 TLE -
testcase_17 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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