This website requires JavaScript.
Explore
Help
Register
Sign In
Luthics
/
data-structure-experiments
Watch
1
Star
0
Fork
You've already forked data-structure-experiments
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
3f4d6cd144
data-structure-experiments
/
1
/
solution2.md
6 lines
164 B
Markdown
Raw
Blame
History
## 思路
使用
`dfs`
,搜索每一件物品的选择情况,符合条件时输出。
使用
`sum+w[k]<=T`
进行剪枝,提高运行速度
## 代码及解释
Reference in New Issue
View Git Blame
Copy Permalink