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

【专题】 考虑每一项对结果到的贡献 #573

Open
azl397985856 opened this issue Nov 18, 2022 · 0 comments
Open

【专题】 考虑每一项对结果到的贡献 #573

azl397985856 opened this issue Nov 18, 2022 · 0 comments
Labels

Comments

@azl397985856
Copy link
Owner

常见的是给你一个数组,然后给你一个指标, 让你求这个指标的总和。

比如给你一个数组, 给你一个子数组最大值的指标, 让你求所有子数组最大值的总和。

我们可以考虑数组每一项装结果的贡献, 然后将其累加即可。

题目:

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

No branches or pull requests

1 participant