結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
52,972 KB
testcase_01 AC 42 ms
58,516 KB
testcase_02 AC 38 ms
52,680 KB
testcase_03 AC 37 ms
52,436 KB
testcase_04 AC 35 ms
52,316 KB
testcase_05 AC 44 ms
59,460 KB
testcase_06 AC 34 ms
51,928 KB
testcase_07 AC 44 ms
60,156 KB
testcase_08 AC 40 ms
60,000 KB
testcase_09 AC 42 ms
59,208 KB
testcase_10 AC 39 ms
57,980 KB
testcase_11 AC 34 ms
52,164 KB
testcase_12 AC 35 ms
53,236 KB
testcase_13 AC 37 ms
52,336 KB
testcase_14 AC 39 ms
52,636 KB
testcase_15 AC 36 ms
53,036 KB
testcase_16 AC 36 ms
52,952 KB
testcase_17 AC 36 ms
52,756 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"))
print("No")
0