TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Animals rampaging in town, unusually large ones (please help)

4 点作者 khalby78610 个月前

1 comment

gus_massa10 个月前
The sum part (capturing) is easy: Just be greedy and capture everything you can.<p>The multiplication part (x bonus) looks hard. You want the minimal product of bonus. It feels like the <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Knapsack_problem" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Knapsack_problem</a> but I&#x27;m not sure.