結果
| 問題 | No.2479 Sum of Squares |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2023-09-22 21:23:22 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 172 bytes |
| 記録 | |
| コンパイル時間 | 387 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-03-30 05:35:04 |
| 合計ジャッジ時間 | 6,520 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 22 |
ソースコード
import sys
input = sys.stdin.readline
from math import sqrt
S=int(input())
ANS=[]
while S>0:
x=int(sqrt(S))
ANS.append(x)
S-=x*x
print(len(ANS))
print(*ANS)
titia