#include int n,w[105],v[105],W; int dp[10005]; inline int max(int a,int b){return a>b?a:b;} void solve() { int i,j; for(i=0;i