pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", "Courier New", …
pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", "Courier New", …
luogu link
写于 2023.08.20
01 背包
朴素算法
//01背包模型
//给出m个物品及其价值,求在空间为T的背包中可以装的最大价值
#include<bits/stdc++.h>
using namespace std;
int ans[101][1001];//a[i][q]表示…