QUOTE(man123 @ Oct 29 2004, 09:32 PM)
ooopss ,
galti se michtake ho gaya
while typing the solution i goofed up, let me modify my stmt
First put coin in the machine , which has label of "Mixed". If you get Pepsi, then it means the machine which has label of "Pepsi" is having
Coke and machine which has label of "Coke" contains mixed drink.
If you get Coke in "Mixed" label machine, then it means the machine which has label of "Coke" does have
Pepsi and the machine which has label of "Pepsi" contains
Mixed drink.
ab galti to insano se hi hoti hai na
i hope, u'l understand the solution now
- Man
I guess your solution is correct
Congratulations...
However IMHO this is not a perfect way to put the statements... Here is what my answer was...
1. Put a coin in "Mixed", if you get "Pepsi" the machine is a "Pepsi" machine since only cases when you can get "Pepsi" from this machine are:
a. If it is a "Mixed" machine, which it cannot be, since the label on it is "Mixed" which is incorrect as per the problem statement...
b. It is a "Pepsi" machine...
2. Now the machine labeled "Coke" cannot be a "Coke" machine because the labels are incorrect and it cannot be a "Pepsi" machine because we have already recognised "Pepsi" machine above. So it is a "Mixed" machine.
3. The third machine is obviously a "Coke" machine...
Same holds true if u get "Coke instead of "Pepsi" in step 1.
Cheers,