結果
| 問題 | No.2479 Sum of Squares |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-10-25 08:19:53 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 138 bytes |
| 記録 | |
| コンパイル時間 | 133 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2026-04-12 07:19:24 |
| 合計ジャッジ時間 | 2,653 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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=' ')