結果
問題 |
No.2479 Sum of Squares
|
ユーザー |
![]() |
提出日時 | 2023-09-23 18:09:46 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 124 bytes |
コンパイル時間 | 385 ms |
コンパイル使用メモリ | 82,336 KB |
実行使用メモリ | 54,028 KB |
最終ジャッジ日時 | 2024-07-16 18:03:14 |
合計ジャッジ時間 | 2,692 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
import math S = int(input()) ANS = [] while S>0: ANS.append(math.isqrt(S)**2) S-=ANS[-1] print(len(ANS)) print(*ANS)