結果
問題 | No.2479 Sum of Squares |
ユーザー |
![]() |
提出日時 | 2023-09-22 22:44:23 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 214 bytes |
コンパイル時間 | 214 ms |
コンパイル使用メモリ | 12,288 KB |
実行使用メモリ | 11,392 KB |
最終ジャッジ日時 | 2024-07-08 13:28:41 |
合計ジャッジ時間 | 2,607 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 RE * 2 |
ソースコード
from decimal import Decimal import math s = int(input()) ans = list() while True: if s == 0: break num = Decimal(math.sqrt(s))//1 ans.append(num*num) s -= num*num print(len(ans)) print(*ans)