結果

問題 No.1218 Something Like a Theorem
ユーザー MottchanMottchan
提出日時 2023-03-26 19:40:08
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 274 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 81,632 KB
実行使用メモリ 75,340 KB
最終ジャッジ日時 2023-10-19 13:49:46
合計ジャッジ時間 2,171 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
61,748 KB
testcase_01 AC 52 ms
67,944 KB
testcase_02 AC 43 ms
61,684 KB
testcase_03 AC 43 ms
61,684 KB
testcase_04 AC 53 ms
67,880 KB
testcase_05 WA -
testcase_06 AC 43 ms
61,748 KB
testcase_07 AC 60 ms
70,148 KB
testcase_08 AC 60 ms
70,148 KB
testcase_09 AC 54 ms
68,072 KB
testcase_10 AC 58 ms
70,136 KB
testcase_11 AC 47 ms
61,748 KB
testcase_12 AC 48 ms
61,748 KB
testcase_13 AC 48 ms
61,748 KB
testcase_14 AC 75 ms
75,256 KB
testcase_15 AC 95 ms
75,128 KB
testcase_16 AC 100 ms
75,124 KB
testcase_17 AC 108 ms
75,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,z=map(int,input().split())
a=0
for x in range(1,10**5):
    for y in range(x,10**4):
        if x ** n + y ** n == z ** n:
            a+=1
            break        
        elif x ** n + y ** n > z ** n:
            break

if a > 0:
    print('Yes')
else:
    print('No')
0