結果
| 問題 | No.2479 Sum of Squares |
| コンテスト | |
| ユーザー |
Cecil
|
| 提出日時 | 2023-09-22 21:32:45 |
| 言語 | Python3 (3.14.3 + numpy 2.4.2 + scipy 1.17.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 179 bytes |
| 記録 | |
| コンパイル時間 | 431 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 20,644 KB |
| 最終ジャッジ日時 | 2026-03-30 05:48:45 |
| 合計ジャッジ時間 | 5,685 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 RE * 2 |
ソースコード
import math
s = int(input())
ans = list()
while True:
if s == 0:
break
num = int(math.sqrt(s))
ans.append(num*num)
s -= num*num
print(len(ans))
print(*ans)
Cecil