結果

問題 No.1218 Something Like a Theorem
ユーザー 37zigen37zigen
提出日時 2020-09-07 04:24:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 151 bytes
コンパイル時間 202 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 60,328 KB
最終ジャッジ日時 2024-05-06 23:19:26
合計ジャッジ時間 1,697 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,632 KB
testcase_01 AC 45 ms
57,940 KB
testcase_02 AC 38 ms
51,940 KB
testcase_03 AC 42 ms
52,616 KB
testcase_04 AC 45 ms
52,364 KB
testcase_05 AC 51 ms
60,328 KB
testcase_06 AC 39 ms
52,000 KB
testcase_07 AC 45 ms
59,896 KB
testcase_08 AC 46 ms
59,840 KB
testcase_09 AC 49 ms
59,360 KB
testcase_10 AC 46 ms
58,652 KB
testcase_11 AC 41 ms
52,956 KB
testcase_12 AC 41 ms
52,708 KB
testcase_13 AC 40 ms
53,072 KB
testcase_14 AC 39 ms
52,272 KB
testcase_15 AC 38 ms
53,420 KB
testcase_16 AC 38 ms
52,532 KB
testcase_17 AC 37 ms
52,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,z=map(int,input().split())
for x in range(z):
    for y in range(z):
        if x**n+y**n==z**n:
            exit(print("Yes"))
else:
    print("No")
0