結果
| 問題 |
No.2479 Sum of Squares
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-22 21:30:40 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 128 bytes |
| コンパイル時間 | 218 ms |
| コンパイル使用メモリ | 81,700 KB |
| 実行使用メモリ | 53,812 KB |
| 最終ジャッジ日時 | 2024-07-08 12:11:26 |
| 合計ジャッジ時間 | 2,192 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 WA * 2 |
ソースコード
S = int(input())
ans = []
while S > 0:
rtS = int(S**0.5)
ans.append(rtS**2)
S -= rtS**2
print(len(ans))
print(*ans)