অন্তহীন ছুটে চলা, অবিরাম জীবনের অর্থ খুজে ফেরা

UVa : 10130 (SuperSale)

2. u can’t take an object more than one time.
suppose, u can stand with maximum 30 kg weight
an object has a weight of 10 kg
but u can take the object only once, not 3 times, though u still have 20 kg space

3. calculate all the values up to 30 and save in an array dp [30]
if ur maxWeightLimit = i, thn dp [i] = maxValue u can get