結果
| 問題 |
No.2392 二平方和
|
| コンテスト | |
| ユーザー |
Cecil
|
| 提出日時 | 2023-07-28 22:39:20 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 179 bytes |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 82,328 KB |
| 実行使用メモリ | 54,052 KB |
| 最終ジャッジ日時 | 2024-10-06 20:08:36 |
| 合計ジャッジ時間 | 2,484 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 9 |
ソースコード
P = int(input())
for i in range(1, P+1):
if i * i <= P:
j = (P - i*i) ** (0.5)
if j * j + i * i == P:
print("Yes")
exit()
print("No")
Cecil