#include int main(void){ int n,k,w,max=0; int wei[100005]; scanf("%d%d",&n,&k); for(int i=0; ik)dp[i+1][j]=dp[i][j]; else dp[i+1][j+wei[i]]=dp[i][j]+wei[i]; if(max