Skip to content

Instantly share code, notes, and snippets.

View ApoorvaRajBhadani's full-sized avatar

Apoorva Raj Bhadani ApoorvaRajBhadani

View GitHub Profile
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main()
{
ll mw,n,i,j,val,wt;
cin>>mw>>n;
while(mw!=0&&n!=0){
ll v[n],w[n];