0-1 Knapsack at hb

https://hack.codingblocks.com/contests/c/452/257
https://ide.codingblocks.com/s/35021