結果
| 問題 | No.2479 Sum of Squares |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-22 22:15:43 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 197 bytes |
| 記録 | |
| コンパイル時間 | 119 ms |
| コンパイル使用メモリ | 85,488 KB |
| 実行使用メモリ | 91,516 KB |
| 最終ジャッジ日時 | 2026-03-30 06:58:18 |
| 合計ジャッジ時間 | 3,745 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 1 -- * 21 |
ソースコード
ss = int(input())
s = ss
ans = []
import math
while s >= 1:
x = math.floor(math.sqrt(s))
ans.append(x**2)
s -= x**2
while sum(ans) != ss:
ans.append(1)
print(len(ans))
print(*ans)