結果
問題 |
No.2479 Sum of Squares
|
ユーザー |
|
提出日時 | 2023-09-22 22:05:12 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 187 bytes |
コンパイル時間 | 1,030 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 65,024 KB |
最終ジャッジ日時 | 2024-07-08 12:49:50 |
合計ジャッジ時間 | 2,149 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 RE * 2 |
ソースコード
import sys input = sys.stdin.readline S = int(input()) ans = [] now = S while now!=0: tmp = int(now**(0.5)) ans.append(tmp**2) now -= tmp**2 print(len(ans)) print(*ans)