結果
| 問題 | No.2479 Sum of Squares |
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2023-09-22 21:21:55 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 61 ms / 2,000 ms |
| + 324µs | |
| コード長 | 136 bytes |
| 記録 | |
| コンパイル時間 | 2,156 ms |
| コンパイル使用メモリ | 95,456 KB |
| 実行使用メモリ | 78,976 KB |
| 最終ジャッジ日時 | 2026-08-12 18:02:34 |
| 合計ジャッジ時間 | 4,369 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_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