結果
| 問題 | No.2392 二平方和 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-02-27 06:29:12 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 95 ms / 2,000 ms |
| + 803µs | |
| コード長 | 219 bytes |
| 記録 | |
| コンパイル時間 | 296 ms |
| コンパイル使用メモリ | 21,596 KB |
| 実行使用メモリ | 15,788 KB |
| 最終ジャッジ日時 | 2026-09-06 01:10:19 |
| 合計ジャッジ時間 | 4,609 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 26 |
ソースコード
P = int(input())
Ps = set([i*i for i in range(1, 10**4+1)])
def solver(P, Ps):
for p1 in Ps:
if P-p1 in Ps:
return True
return False
if solver(P, Ps):
print("Yes")
else:
print("No")