https://hack.codingblocks.com/contests/c/452/928
https://ide.codingblocks.com/s/33569
Colorful Knapsack @HB
Your code doesn’t work even for the sample test case
9 3 10
1 3 5 1 3 5 1 3 5
1 1 1 2 2 2 3 3 3
The output should be 1
but your code gives 3