結果

問題 No.1218 Something Like a Theorem
ユーザー O2MTO2MT
提出日時 2021-02-17 21:05:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 158 ms / 2,000 ms
コード長 181 bytes
コンパイル時間 1,040 ms
コンパイル使用メモリ 86,656 KB
実行使用メモリ 76,560 KB
最終ジャッジ日時 2023-10-12 07:12:43
合計ジャッジ時間 3,716 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,660 KB
testcase_01 AC 157 ms
76,304 KB
testcase_02 AC 73 ms
71,120 KB
testcase_03 AC 73 ms
71,364 KB
testcase_04 AC 73 ms
71,168 KB
testcase_05 AC 73 ms
71,344 KB
testcase_06 AC 73 ms
71,500 KB
testcase_07 AC 84 ms
76,560 KB
testcase_08 AC 91 ms
76,460 KB
testcase_09 AC 158 ms
76,176 KB
testcase_10 AC 79 ms
76,248 KB
testcase_11 AC 74 ms
71,676 KB
testcase_12 AC 73 ms
71,320 KB
testcase_13 AC 73 ms
71,748 KB
testcase_14 AC 84 ms
76,520 KB
testcase_15 AC 116 ms
76,164 KB
testcase_16 AC 73 ms
71,332 KB
testcase_17 AC 74 ms
71,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,z = map(int,input().split())
N = z**n
ans = "No"
for i in range(1,N):
    if (i**(1/n)).is_integer() and ((N-i)**(1/n)).is_integer():
        ans = "Yes"
        break

print(ans)
0