結果

問題 No.2479 Sum of Squares
ユーザー ohana
提出日時 2023-09-25 17:39:31
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 122 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 64,768 KB
最終ジャッジ日時 2024-07-18 13:52:35
合計ジャッジ時間 5,751 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 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(*ans)
0