結果
| 問題 |
No.1218 Something Like a Theorem
|
| コンテスト | |
| ユーザー |
nohakai3
|
| 提出日時 | 2022-11-18 09:30:05 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 277 bytes |
| コンパイル時間 | 154 ms |
| コンパイル使用メモリ | 82,524 KB |
| 実行使用メモリ | 75,848 KB |
| 最終ジャッジ日時 | 2024-09-19 17:57:33 |
| 合計ジャッジ時間 | 3,181 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 WA * 3 |
ソースコード
n,z=map(int,input().split())
c=z**n
if n==1:
if z==1:
print("No")
else:
print("Yes")
else:
for i in range(1,500):
for j in range(1,500):
if pow(i,n)+pow(j,n)==c:
print("Yes")
exit()
print("No")
nohakai3