A classic paradox question in a programmer interview

If you were asked to choose one of the following two games, which one would you choose? Why?
      a. Write a sentence. If the sentence is true, you will get $10; if the sentence is false, you will receive less than $10 or more (but not exactly $10).
      b. Write a sentence. Whether this statement is true or false, you'll get more than $10. Answer: Choose the first game and write "I won't get either $10 nor $10,000,000". (Paradox question, a is a paradox if it just says "I won't get $10".) That way, you're sure to get $10,000,000. If this statement is true and you don't get $100,000,000, then you get $10, and you say you won't get $10, which creates a contradiction, so the statement must be false, and you don't Get $10, so you're sure to get $10,000,000. So with the first game, you can set yourself how many dollars you can earn.
    

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326220072&siteId=291194637