Advertisement
Guest User

Untitled

a guest
Nov 10th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. The princesses are abbreviated r (random), t (truthteller), and l (liar), and you are facing them as they stand in a row in front of you. (their right is our left)
  2.  
  3. You ask the middle princess, "Does the princess on your right ever tell the truth?"
  4.  
  5. "yes" answer =
  6.  
  7. r/t/l
  8. ?/r/?
  9.  
  10. So choosing the princess in the third position will be safe
  11.  
  12. "no" answer =
  13.  
  14. l/t/r
  15. t/l/r
  16. ?/r/?
  17.  
  18. So choosing the princess in the first position will be safe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement