結果
| 問題 |
No.2479 Sum of Squares
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-22 21:32:07 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 129 bytes |
| コンパイル時間 | 563 ms |
| コンパイル使用メモリ | 82,312 KB |
| 実行使用メモリ | 60,280 KB |
| 最終ジャッジ日時 | 2024-07-08 12:16:36 |
| 合計ジャッジ時間 | 62,787 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 3 |
| other | TLE * 22 |
ソースコード
n=int(input())
ans=[]
for i in range(1,10**9+1)[::-1]:
while i*i<=n:
n-=i*i
ans.append(i*i)
print(len(ans))
print(*ans)