結果
問題 |
No.2392 二平方和
|
ユーザー |
|
提出日時 | 2023-08-24 06:36:41 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 267 bytes |
コンパイル時間 | 314 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 59,776 KB |
最終ジャッジ日時 | 2024-12-22 19:38:58 |
合計ジャッジ時間 | 4,890 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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(2,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")