結果
| 問題 |
No.2479 Sum of Squares
|
| コンテスト | |
| ユーザー |
310icecrystal
|
| 提出日時 | 2023-09-23 00:43:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 242 bytes |
| コンパイル時間 | 252 ms |
| コンパイル使用メモリ | 82,560 KB |
| 実行使用メモリ | 53,808 KB |
| 最終ジャッジ日時 | 2024-07-16 01:12:02 |
| 合計ジャッジ時間 | 4,947 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 22 |
ソースコード
S = int(input())
ans = []
while S:
OK = 1
NG = 10**10
while NG - OK >= 2:
MID = (OK+NG)//2
if MID*MID <= S:
OK = MID
else:
NG = MID
ans.append(OK*OK)
S -= OK*OK
print(*ans)
310icecrystal