- 博客(5)
- 收藏
- 关注
原创 【动态规划】01背包问题
#include<bits/stdc++.h>using namespace std;int w[20],v[20];int mp[100][100];int getmax(int a,int b){ if(a>b) return a; else return b;}int main(){ cout<<"请输入物品个数:"<<endl; int n; cin>>n; cout<<"请输入物品重量:"<<.
2022-05-07 15:53:54
203
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人