結果

問題 No.2479 Sum of Squares
ユーザー ohana
提出日時 2023-09-25 17:40:06
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 138 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 65,024 KB
最終ジャッジ日時 2024-07-18 13:52:49
合計ジャッジ時間 2,060 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

n = int(input())
ans = []
while n:
    x = int(math.sqrt(n))
    ans.append(x**2)
    n -= x**2

print(len(ans))
print(*ans)
0