結果
| 問題 | No.2479 Sum of Squares |
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2023-09-23 18:09:46 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 2,000 ms |
| + 845µs | |
| コード長 | 124 bytes |
| 記録 | |
| コンパイル時間 | 226 ms |
| コンパイル使用メモリ | 96,240 KB |
| 実行使用メモリ | 79,152 KB |
| 最終ジャッジ日時 | 2026-08-14 11:37:49 |
| 合計ジャッジ時間 | 3,424 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
H20