結果
| 問題 |
No.2392 二平方和
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2023-03-14 23:23:37 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 140 bytes |
| コンパイル時間 | 146 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 17,696 KB |
| 最終ジャッジ日時 | 2024-09-18 08:35:37 |
| 合計ジャッジ時間 | 4,298 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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(r):
if P==i2+j*j:
print("Yes")
exit(0)
print("No")