結果
| 問題 | No.1218 Something Like a Theorem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-05 00:10:45 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 144 bytes |
| 記録 | |
| コンパイル時間 | 221 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 20,992 KB |
| 最終ジャッジ日時 | 2024-11-26 21:13:25 |
| 合計ジャッジ時間 | 5,599 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 TLE * 1 |
ソースコード
n,Z = map(int,input().split())
ans = "No"
for i in range(1,Z):
for j in range(1,Z):
if (i**n + j**n) == Z**n:
ans = "Yes"
print(ans)