結果
問題 |
No.2479 Sum of Squares
|
ユーザー |
|
提出日時 | 2023-09-22 21:28:34 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 260 bytes |
コンパイル時間 | 331 ms |
コンパイル使用メモリ | 81,904 KB |
実行使用メモリ | 67,708 KB |
最終ジャッジ日時 | 2024-07-08 12:09:28 |
合計ジャッジ時間 | 4,912 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 22 |
ソースコード
IN = iter(Input.split('\n')).__next__ def input(): return IN() import decimal,math S=int(input()) ans=[] for i in range(15): ans.append(math.floor(math.sqrt(decimal.Decimal(S)))**2) S-=ans[-1] if S==0: break print(len(ans)) print(*ans)