Skip to content

【2021天梯赛训练-1】7-11 人以群分 | HBUACM #13

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

Open
HANXU2018 opened this issue Jan 16, 2021 · 0 comments
Open

【2021天梯赛训练-1】7-11 人以群分 | HBUACM #13

HANXU2018 opened this issue Jan 16, 2021 · 0 comments

Comments

@HANXU2018
Copy link
Member

https://hbuacm.github.io/2021/01/12/%E3%80%902021%E5%A4%A9%E6%A2%AF%E8%B5%9B%E8%AE%AD%E7%BB%83-1%E3%80%917-11%E4%BA%BA%E4%BB%A5%E7%BE%A4%E5%88%86/

社交网络中我们给每个人定义了一个“活跃度”,现希望根据这个指标把人群分为两大类,即外向型(outgoing,即活跃度高的)和内向型(introverted,即活跃度低的)。要求两类人群的规模尽可能接近,而他们的总活跃度差距尽可能拉开。 输入格式:输入第一行给出一个正整数N(2≤N≤105)。随后一行给出N个正整数,分别是每个人的活跃度,其间以空格分隔。题目保证这些数字以及它们的和都不会超过231。

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