SAP智力題-----A bum in wine cellars ★★★★★★★

來源: Williamluo 2009-08-20 22:18:30 [] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (1249 bytes)
本文內容已被 [ Williamluo ] 在 2009-09-12 14:59:37 編輯過。如有問題,請報告版主或論壇管理刪除.
There are 9 wine cellars located side by side in a street, a bum is hiding in one of of them. Everyday he would drink one bottle of wine and leave the empty bottle on the ground. Everynight, he will move to an adjacent cellar. From the day he begins to hide, the police begin to search, everyday they will search one cellar. How many days are necessary and sufficient to find the bum?
----Designed by Hansen Chen in 2008( https://www.sdn.sap.com/irj/scn/forum?forumID=410 )

I got the inspiration from a puzzle called "burglar in rooms", it is much more challenging by adding the bottle to the logic.

If you can solve this puzzle, try to consider an extended one: ★★★★★★★★
There are 999 wine cellars located side by side in a street, a bum is hiding in one of of them. Everyday he would drink one bottle of wine and leave the empty bottle on the ground. Everynight, he will move to an adjacent cellar. From the day he begins to hide, the police begin to search, everyday they will search one cellar.
1. how to find the bum in less than 1020 days?
2. how to find the bum in less than 999 days?
(The extended one is not as time-consumming as imagined. And the strategy is totally different from the 9-cellar one.)

所有跟帖: 

回複:SAP智力題-----A bum in wine cellars ★★★★★★★ -iooooooi- 給 iooooooi 發送悄悄話 (463 bytes) () 08/21/2009 postreply 08:48:23

Also, does the bum aware which cellar the police searched the da -iooooooi- 給 iooooooi 發送悄悄話 (335 bytes) () 08/21/2009 postreply 08:58:48

My understanding of the problem -dynamic- 給 dynamic 發送悄悄話 (1229 bytes) () 08/21/2009 postreply 14:46:53

回複:SAP智力題-----A bum in wine cellars ★★★★★★★ -panzertiger503- 給 panzertiger503 發送悄悄話 (140 bytes) () 09/01/2009 postreply 12:40:06

I am wrong -panzertiger503- 給 panzertiger503 發送悄悄話 (148 bytes) () 09/01/2009 postreply 12:59:45

請您先登陸,再發跟帖!