https://blog.csdn.net/csyifanZhang/article/details/105342413
部分和拼凑问题都一个样↑
int main() {
int v[7] = {0, 1,2,3,5,10,20 }, a[7], dp[MAX];
for (int i = 1; i <= 6; i++)cin >> a[i];
memset(dp, 0, sizeof(dp));
int maxj = 0; dp[0] = 1;int res = 0;
for (int i = 1; ...