結果
| 問題 | No.2479 Sum of Squares |
| コンテスト | |
| ユーザー |
ohana
|
| 提出日時 | 2023-09-25 17:39:31 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 122 bytes |
| 記録 | |
| コンパイル時間 | 123 ms |
| コンパイル使用メモリ | 84,968 KB |
| 実行使用メモリ | 138,184 KB |
| 最終ジャッジ日時 | 2026-04-02 07:15:21 |
| 合計ジャッジ時間 | 3,737 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 20 RE * 2 |
ソースコード
import math
n = int(input())
ans = []
while n:
x = int(math.sqrt(n))
ans.append(x**2)
n -= x**2
print(*ans)
ohana