結果
| 問題 | No.2392 二平方和 |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-03-14 23:28:04 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 142 bytes |
| 記録 | |
| コンパイル時間 | 389 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 21,760 KB |
| 最終ジャッジ日時 | 2026-04-06 15:08:56 |
| 合計ジャッジ時間 | 6,208 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 TLE * 1 -- * 5 |
ソースコード
P=int(input())
r=2
while r*r<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")