#include <bits/stdc++.h> using namespace std; const int N = 1010; int n,V,v[N],w[N],dp1[N],dp2[N]; int main(){ cin>>n>>V; for(int i = 1;i<=n;i++) cin>>v[i]>>w[i]; for(int i = 1;i<=n;i++){ for(int j = v[i];j<=V;j++){ dp1[j] = m...