[Solution] Weights solution codechef

Weights solution codechef Weights solution codechef – Chef is playing with weights. He has an object weighing WW units. He also has three weights each of X, Y,X,Y, and ZZ units respectively. Help him determine whether he can measure the exact weight of the object with one or more of these weights. If it is possible to measure the weight of object … Read more