結果
| 問題 | 
                            No.2479 Sum of Squares
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Kude
                         | 
                    
| 提出日時 | 2023-09-22 21:21:55 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 41 ms / 2,000 ms | 
| コード長 | 136 bytes | 
| コンパイル時間 | 136 ms | 
| コンパイル使用メモリ | 81,848 KB | 
| 実行使用メモリ | 54,088 KB | 
| 最終ジャッジ日時 | 2024-07-08 12:00:14 | 
| 合計ジャッジ時間 | 2,079 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 22 | 
ソースコード
from math import isqrt
s = int(input())
ans = []
while s:
    x = isqrt(s) ** 2
    ans.append(x)
    s -= x
print(len(ans))
print(*ans)
            
            
            
        
            
Kude