結果
| 問題 | No.2479 Sum of Squares |
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2023-09-22 21:21:55 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 2,000 ms |
| コード長 | 136 bytes |
| 記録 | |
| コンパイル時間 | 1,026 ms |
| コンパイル使用メモリ | 85,396 KB |
| 実行使用メモリ | 53,068 KB |
| 最終ジャッジ日時 | 2026-03-30 05:33:30 |
| 合計ジャッジ時間 | 1,764 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
from math import isqrt
s = int(input())
ans = []
while s:
x = isqrt(s) ** 2
ans.append(x)
s -= x
print(len(ans))
print(*ans)
Kude