結果
問題 |
No.2392 二平方和
|
ユーザー |
|
提出日時 | 2023-07-31 09:19:17 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 168 bytes |
コンパイル時間 | 366 ms |
コンパイル使用メモリ | 82,100 KB |
実行使用メモリ | 59,748 KB |
最終ジャッジ日時 | 2024-10-10 03:00:57 |
合計ジャッジ時間 | 2,276 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 |
ソースコード
import sys import math p=int(input()) for i in range(1,math.floor(math.sqrt(2*p)/2)+1): j=p-i**2 if math.sqrt(j).is_integer(): print("Yes") sys.exit() print("No")