結果

問題 No.2479 Sum of Squares
ユーザー KDKJ
提出日時 2023-11-29 15:31:00
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 409 bytes
コンパイル時間 235 ms
コンパイル使用メモリ 82,260 KB
実行使用メモリ 56,804 KB
最終ジャッジ日時 2024-09-26 13:25:00
合計ジャッジ時間 5,168 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

from heapq import heappush, heappop, heapify
import sys
from collections import defaultdict, deque
from math import ceil, floor, sqrt, factorial, gcd
from itertools import permutations, combinations
from bisect import bisect_left, bisect_right
sys.setrecursionlimit(10**6)
# input = sys.stdin.readline

s = int(input())
ans = []
while s > 0:
    x = floor(s**0.5)
    s -= x*x
    ans.append(x*x)
print(*ans)
0