7、A Teacher thinks of two consecutive numbers in the range 1 to 10, and tells Alex one of the numbers and Sam the other.
Sam and Alex have the following conversations:
Alex: I don't know your number.
Sam: I don't know your number, either.
Alex: Now I know!
Can you find all 4 solutions?
因為兩人數是相鄰的,所以要知道另外一個人的號碼,自己必須持有1或者10。
因此Alex持有的可能是9,因為當他持有9的時候,Sam只可能是8或者10,而Sam又不能確定Alex的號碼,所以他不可能是10或者1,所以Alex可以知道Sam持有的是8。
同樣的道理:Alex持有的可能是2,Sam是3。
No comments:
Post a Comment