朋友让你去家里帮助照顾可爱的比熊犬Tommy,你需要打开冰箱给Tommy找吃的,可是冰箱上有一个4位密码锁,必须在10次机会以内输入正确密码,每次试验会得到一次提示信息。相信你不会让Tommy饿肚子的!
[提示规则:返回的信息会告诉你有几个数字既猜中了大小也猜中了位置,以及有几个数字只猜中了大小而没猜中位置。注意出现重叠数字的情况,猜对的数字不会进行重复统计。例如密码是9900而你猜的是5559,则会告诉你仅有一个数字猜中了大小而位置不对。又比如密码是9000而你猜的是1999时,则会告诉你只有一个数字猜对了大小且位置不对。]
Your Friend asked you to help look after Tommy, a lovely Bichon Frise. Now Tommy is hungry and you have to take out the food from the fridge which cant be opened unless you can enter the right code. Can you reason it out according to the information returned within 10 times? Remember, Tommy is looking at you, wagging his tail.