結果
| 問題 |
No.1218 Something Like a Theorem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-05 10:48:32 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 175 ms / 2,000 ms |
| コード長 | 181 bytes |
| コンパイル時間 | 332 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 224,384 KB |
| 最終ジャッジ日時 | 2024-11-27 22:23:54 |
| 合計ジャッジ時間 | 2,090 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 16 |
ソースコード
n, z = map(int, input().split())
t = z**n
s = set()
x = 1
while x**n<=t:
s.add(x**n)
x += 1
for si in s:
if t-si in s:
print('Yes')
exit()
print('No')