結果
| 問題 |
No.2479 Sum of Squares
|
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2023-09-23 18:08:33 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 110 bytes |
| コンパイル時間 | 500 ms |
| コンパイル使用メモリ | 82,188 KB |
| 実行使用メモリ | 54,136 KB |
| 最終ジャッジ日時 | 2024-07-16 18:01:56 |
| 合計ジャッジ時間 | 3,102 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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