結果
| 問題 | No.2392 二平方和 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-24 06:38:05 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 265 bytes |
| 記録 | |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 60,032 KB |
| 最終ジャッジ日時 | 2026-05-28 23:07:11 |
| 合計ジャッジ時間 | 3,155 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 15 |
ソースコード
P = int(input())
import sys
if P==2:
print("Yes")
sys.exit()
l = [0]*(10**4)
for i in range(10**4):
l[i]==i**2
for i in range(2,10**4,2):
for j in range(3,10**4,2):
if l[i]+l[j]==P:
print("Yes")
sys.exit()
print("No")