Knapsack WA

qstn:http://www.codechef.com/problems/KNPSK
getting WA plz help where my test case fail my solution http://www.codechef.com/viewsolution/4861523

//