結果
| 問題 |
No.2392 二平方和
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2023-07-29 20:41:10 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 198 bytes |
| コンパイル時間 | 212 ms |
| コンパイル使用メモリ | 82,328 KB |
| 実行使用メモリ | 59,392 KB |
| 最終ジャッジ日時 | 2024-10-08 06:41:26 |
| 合計ジャッジ時間 | 2,876 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 WA * 1 |
ソースコード
P = int(input())
i = 0
while i * i <= P:
j = i + 1
while i * i + j * j <= P:
if i * i + j * j == P:
print("Yes")
exit()
j += 1
i += 1
print("No")
ntuda