結果

問題 No.1218 Something Like a Theorem
ユーザー kites7483kites7483
提出日時 2020-09-14 23:16:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 220 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 10,628 KB
実行使用メモリ 7,968 KB
最終ジャッジ日時 2023-09-04 00:52:11
合計ジャッジ時間 10,292 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 293 ms
7,920 KB
testcase_01 AC 394 ms
7,784 KB
testcase_02 AC 295 ms
7,828 KB
testcase_03 AC 289 ms
7,804 KB
testcase_04 AC 264 ms
7,812 KB
testcase_05 WA -
testcase_06 AC 290 ms
7,812 KB
testcase_07 AC 326 ms
7,828 KB
testcase_08 AC 330 ms
7,968 KB
testcase_09 AC 327 ms
7,884 KB
testcase_10 AC 327 ms
7,780 KB
testcase_11 AC 292 ms
7,932 KB
testcase_12 AC 298 ms
7,828 KB
testcase_13 AC 365 ms
7,884 KB
testcase_14 AC 501 ms
7,820 KB
testcase_15 AC 882 ms
7,888 KB
testcase_16 AC 1,162 ms
7,808 KB
testcase_17 AC 1,841 ms
7,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,z = map(int, input().split())
count = 0
for i in range(1,1001):
    for j in range(1,1001):
        if i**n + j**n == z**n:
            count += 1
            break
if count != 0:
    print('Yes')
else:
    print('No')
0