HDU2069 Coin change HDU 1114 Piggy-Bank HDU1712 ACboy needs your help
HDU2069CoinChange换零钱,计算有多少方案数#include
#include
#include
usingnamespacestd;
#defineN100010
intdp[N],w[5],v[5],n,m;
intmain()
{
w[0]=1;w[1]=5;w[2]=10;w[3]=25;w[4]=50;
memset(dp,0,sizeof(dp));
dp[0]=1;