結果
| 問題 |
No.2479 Sum of Squares
|
| コンテスト | |
| ユーザー |
takumaiq
|
| 提出日時 | 2023-09-19 22:14:59 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 195 bytes |
| コンパイル時間 | 141 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-06 17:34:49 |
| 合計ジャッジ時間 | 3,963 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 22 |
ソースコード
S=int(input())
rest=S
for i in range(15):
l,r=0,10**10
while r-l>1:
m=(l+r)//2
if m**2>rest:
r=m
else:
l=m
rest-=l**2
if l==0: break
print(l**2,end=" ")
print()
takumaiq