#include#include using namespace std; int dp[10010]; int max(int a,int b) { return a>b?a:b; } int main() { int n,v,vi[10100],wi[10100],i,j; while(cin>>n>>v) { memset(vi,0,sizeof(vi)); memset(wi,0,sizeof(wi)); for(i=0;i >wi[i]; for(i=0;i >vi[i]; memset(dp,0,sizeof(dp)); for(i=0;i