結果
| 問題 |
No.2479 Sum of Squares
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-22 21:28:57 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 192 bytes |
| コンパイル時間 | 221 ms |
| コンパイル使用メモリ | 81,996 KB |
| 実行使用メモリ | 80,128 KB |
| 最終ジャッジ日時 | 2024-07-08 12:10:01 |
| 合計ジャッジ時間 | 4,297 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 RE * 2 |
ソースコード
import decimal,math
S=int(input())
ans=[]
for i in range(15):
ans.append(math.floor(math.sqrt(decimal.Decimal(S)))**2)
S-=ans[-1]
if S==0:
break
print(len(ans))
print(*ans)