結果
| 問題 | No.1218 Something Like a Theorem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-04-30 23:46:51 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 210 bytes |
| 記録 | |
| コンパイル時間 | 219 ms |
| コンパイル使用メモリ | 85,660 KB |
| 実行使用メモリ | 166,676 KB |
| 最終ジャッジ日時 | 2026-04-02 13:57:52 |
| 合計ジャッジ時間 | 10,506 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 15 TLE * 1 |
ソースコード
N,Z=map(int,input().split())
if N==1 and 2<=Z:
print("Yes")
exit()
for x in range(1,1001):
for y in range(1,1001):
if x**N+y**N==Z**N:
print("Yes")
exit()
print("No")