結果
| 問題 | No.1218 Something Like a Theorem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-05 10:48:32 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 89 ms / 2,000 ms |
| + 514µs | |
| コード長 | 181 bytes |
| 記録 | |
| コンパイル時間 | 65 ms |
| コンパイル使用メモリ | 81,212 KB |
| 実行使用メモリ | 227,616 KB |
| 最終ジャッジ日時 | 2026-10-01 02:40:23 |
| 合計ジャッジ時間 | 2,208 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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')