結果
問題 |
No.1218 Something Like a Theorem
|
ユーザー |
|
提出日時 | 2020-09-04 22:33:18 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 270 bytes |
コンパイル時間 | 327 ms |
コンパイル使用メモリ | 81,968 KB |
実行使用メモリ | 127,868 KB |
最終ジャッジ日時 | 2024-11-26 15:43:55 |
合計ジャッジ時間 | 15,378 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 TLE * 1 |
other | AC * 13 TLE * 3 |
ソースコード
n,z = map(int,input().split()) if n == 1: if z - 1 > 0: print("Yes") else: print("No") exit() z = z**n for i in range(1,z): for j in range(1,z): if pow(i,n) + pow(j,n) == z: print("Yes") exit() print("No")