結果
| 問題 | No.2479 Sum of Squares |
| コンテスト | |
| ユーザー |
ohana
|
| 提出日時 | 2023-09-25 17:39:31 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 122 bytes |
| 記録 | |
| コンパイル時間 | 237 ms |
| コンパイル使用メモリ | 95,980 KB |
| 実行使用メモリ | 91,136 KB |
| 最終ジャッジ日時 | 2026-08-17 06:28:30 |
| 合計ジャッジ時間 | 8,121 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_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