2022115886
2022115886
全部文章
分类
题解(4)
归档
标签
去牛客网
登录
/
注册
2022115886的博客
全部文章
(共1篇)
题解 | #多重背包#
背包问题: 起初并未想到二进制优化,因为这一题数据范围不大,因此可以用O(n3)的解法,提交代码如下: include <bits/stdc++.h> using namespace std; int n,t; int x,w,v; int dp[101][1001]; in...
C++
动态规划
2023-07-29
1
442