文章摘要
LIK.CC-GPT
题目{
cin>>n>>m;
f[0]=1;
for(int i=1;i<=n;i++){
cin>>w;
for(int j=m;j>=w;j--){
f[j]+=f[j-w];
}
}
cout<<f[m]<<endl;
return 0;
}