結果
| 問題 | 
                            No.2479 Sum of Squares
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2023-10-25 08:19:53 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 138 bytes | 
| コンパイル時間 | 160 ms | 
| コンパイル使用メモリ | 82,020 KB | 
| 実行使用メモリ | 54,284 KB | 
| 最終ジャッジ日時 | 2024-09-25 03:30:08 | 
| 合計ジャッジ時間 | 2,354 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 20 WA * 2 | 
ソースコード
S = int(input())
s = S
ans = []
while s > 0:
    p = int(s**0.5)
    s -= p**2
    ans.append(p**2)
print(len(ans))
print(*ans, sep=' ')