Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BZOJ2138]stone | K-D Space #18

Open
EndSaH opened this issue Sep 2, 2019 · 0 comments
Open

[BZOJ2138]stone | K-D Space #18

EndSaH opened this issue Sep 2, 2019 · 0 comments

Comments

@EndSaH
Copy link
Owner

EndSaH commented Sep 2, 2019

https://endsah.cf/blog/BZOJ2138-stone/#more

Description有 $n$ 堆石子,$m$ 次操作。第 $i$ 次操作是在 $[l, r]$ 这堆石子中选出至多 $k$ 个石子扔掉。问在保证前 $i - 1$ 次操作全部最优(即扔掉石子最多)的前提下,第 $i$ 次操作最多能扔出多少石子。 操作区间互不包含。 设 $a _i$ 表第 $i$ 堆石子数目,则有: $$1 \le m \le n \le 40000, 1 \le a _i \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant