题目链接:https://cn.vjudge.net/contest/255927#problem/G
#include<bits/stdc++.h>
using namespace std;
#define debug puts("YES");
#define rep(x,y,z) for(int (x)=(y);(x)<(z);(x)++)
#define read(x,y) scanf("%d%d",&x,&y)
#define ll long long
#define lrt int l,int r,int rt
#define lson l,mid,rt<<1
#define rson mid+1,r,rt<<1|1
#define root l,r,rt
const int maxn =1e4+10;
const int mod=1e9+7;
const int ub=1e6;
ll powmod(ll x,ll y){ll t; for(t=1;y;y>>=1,x=x*x%mod) if(y&1) t=t*x%mod; return t;}
ll gcd(ll x,ll y){return y?gcd(y,x%y):x;}
/*
完全背包典型问题。
刚开始用一种两层循环的写法被超时,
就是第一层枚举剩余容量,第二层枚举选的汉堡的个数,
然后这样进行状态数组的更新。
其实不用这样。。。(自己功夫不到家啊。。。)
学会用以前的状态更新未来的状态。
比如当前状态剩余容量i是可达的,
就是说dp[i]是没考虑当前选择物品的最优值,
那么枚举当前物品的选择ÿ