1 条题解
-
0
时间打包即可
using namespace std; int t,n,name,f[100001],p[11][101]; int main(){ freopen("time.in","r",stdin); freopen("time.out","w",stdout); cin>>t>>n>>name; for(int i=1;i<=n;i++) for(int o=1;o<=t;o++){ cin>>p[i][t]; for(int j=t;j>=name+o;j--)f[j]=max(f[j],f[j-name-o]+p[i][t]); } cout<<f[t]; return 0; }
信息
- ID
- 465
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 9
- 标签
- 递交数
- 65
- 已通过
- 5
- 上传者