結果
| 問題 | No.2392 二平方和 |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-03-14 23:26:03 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 145 bytes |
| 記録 | |
| コンパイル時間 | 562 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 21,760 KB |
| 最終ジャッジ日時 | 2026-04-06 15:08:54 |
| 合計ジャッジ時間 | 17,925 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 11 TLE * 6 |
ソースコード
P=int(input())
r=2
while r*r*2<=P:
r+=1
for i in range(r):
i2=i*i
for j in range(i,r):
if P==i2+j*j:
print("Yes")
exit(0)
print("No")