結果
問題 | No.2479 Sum of Squares |
ユーザー |
|
提出日時 | 2023-09-22 21:43:58 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 35 ms / 2,000 ms |
コード長 | 160 bytes |
コンパイル時間 | 227 ms |
コンパイル使用メモリ | 82,156 KB |
実行使用メモリ | 53,764 KB |
最終ジャッジ日時 | 2024-07-08 12:28:27 |
合計ジャッジ時間 | 1,981 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
import mathS = int(input())ans = []while S:x = math.isqrt(S)x = x**2ans.append(x)S -= xassert len(ans) <= 15print(len(ans))print(*ans)