結果
| 問題 | No.2479 Sum of Squares |
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2023-09-23 18:08:33 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 110 bytes |
| 記録 | |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 95,972 KB |
| 実行使用メモリ | 79,232 KB |
| 最終ジャッジ日時 | 2026-08-14 11:36:32 |
| 合計ジャッジ時間 | 4,136 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 WA * 2 |
ソースコード
S = int(input())
ANS = []
while S>0:
ANS.append(int(S**0.5)**2)
S-=ANS[-1]
print(len(ANS))
print(*ANS)
H20