CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 18 123411 ... LastLast
Results 1 to 15 of 258
  1. #1
    Join Date
    Sep 2002
    Location
    Belarus - Tirol, Austria
    Posts
    647

    Lightbulb Try to solve this interesting logical task!!!

    Try to solve this interesting logical task.

    I don't know may be it was shine of haven on my brain, but I solved it for nearly 1 minute.

    If you know this task already, please give a chance to solve it for anyone else
    and don't write the answer now.

    So....

    Three wise men were disputing - who is the wisest of them?
    Then they saw an old man. One of them said: "Old man, can U settle
    our dispute. Can U determine who is the wisest of us".
    "Ok",- said the old man,- "I have 5 hats in my bag.
    There are three black and two white of them. U all close
    your eyes and I put a hat on everyone's head. Then U all
    open your eyes. U can not see color of your hat, but U can
    see the color of the hat on other wise men. Then the wisest man
    is that who says the first and rightly which color of his hat is ".
    Then it all was done. The old man put black hats on everyone's head.
    The wise men looked at each other. 1 minute passed. Then one of the
    wise men said: "I have a black hat".
    "Yes, U are right. And U are the wisest", - said the old man.

    Now a question - How this wise man could determine the color of his hat rightly .

    Write here or write messages with answers privatly to me.
    Then I will write here the name of the winner.


    Good luck!!!
    "UNIX is simple; it just takes a genius to understand its simplicity!"

  2. #2
    Join Date
    Oct 2001
    Location
    lake of fire and brimstone
    Posts
    1,628
    Oh come on! There is a more difficult version of this. The other two must have a white hat, and since there are only two white hats, the winner must have a black one. The other two can thus apparently see only one black and one white hat. This means they themselves can either have a black or the last remaining white hat. So this does not mean they aren't wise or anything. I think this version s*cks.

    Oh, by the way, I saw this kind of riddle earlier and I think you should be able to solve this under 30 seconds.
    Last edited by Simon666; September 23rd, 2002 at 04:33 AM.
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞

  3. #3
    Join Date
    Apr 2002
    Posts
    388
    Originally posted by Simon666
    Oh come on! There is a more difficult version of this. The other two must have a white hat, and since there are only two white hats, the winner must have a black one. The other two can thus apparently see only one black and one white hat. This means they themselves can either have a black or the last remaining white hat. So this does not mean they aren't wise or anything. I think this version s*cks.

    Oh, by the way, I saw this kind of riddle earlier and I think you should be able to solve this under 30 seconds.
    I cant really follow your solution... I got the solution of the riddle but it is more simple that you wrote it...

    I needed the lunch to solve the riddle.
    mfg Ungi

    Music, music and VB. VB is like music: You never know how it is interpreted.

  4. #4
    Join Date
    Oct 2001
    Location
    lake of fire and brimstone
    Posts
    1,628
    I cant really follow your solution... I got the solution of the riddle but it is more simple that you wrote it...
    If only two white hats are available, and one of the wise men sees two white hats. Then this wise man must wear a black hat. How much simpler than this can it get?
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞

  5. #5
    Join Date
    Apr 2002
    Posts
    388
    Originally posted by Simon666

    If only two white hats are available, and one of the wise men sees two white hats. Then this wise man must wear a black hat. How much simpler than this can it get?
    But the other two wear black hat. What do you have, the last black hat or one of the two white hats??
    mfg Ungi

    Music, music and VB. VB is like music: You never know how it is interpreted.

  6. #6
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588
    [ups, I didn't want to spoil the riddle ]
    Last edited by Yves M; September 23rd, 2002 at 05:34 AM.

  7. #7
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588
    Had you found it before then, Ungi ? I have to admit that I've seen riddles like this one before though...

  8. #8
    Join Date
    Apr 2002
    Posts
    388
    I found it out and I sent a PM to dimm_coder!!
    Let us delete the solution posts so everyone could have fun with this riddle!!
    mfg Ungi

    Music, music and VB. VB is like music: You never know how it is interpreted.

  9. #9
    Join Date
    Aug 2002
    Location
    Madrid
    Posts
    4,588
    Sounds fine

  10. #10
    Join Date
    Oct 2001
    Location
    lake of fire and brimstone
    Posts
    1,628
    The old man put black hats on everyone's head.
    Aha, OK. Apparently I did not read that line. This makes the riddle far more difficult and is the version I know. I've just finished typing at 12.42h and send the answer to dimm_coder as a private message. I posted it here first but in the mean time Yves and Ungi had made another post requesting it not to. So this is done.
    Last edited by Simon666; September 23rd, 2002 at 05:42 AM.
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞

  11. #11
    Join Date
    Apr 2002
    Posts
    388
    Aha, OK. Apparently I did not read that line. This makes the riddle far more difficult and is the version I know. The wise man who has the answer reasons as follows:
    PM to dimm_coder and he will tell.

    Please delete you Post, so others also could have fun with the riddle!!
    mfg Ungi

    Music, music and VB. VB is like music: You never know how it is interpreted.

  12. #12
    Join Date
    Sep 2002
    Location
    Belarus - Tirol, Austria
    Posts
    647
    Ok!

    I got some right answers.

    The most complete and accomplished:

    It's by my time zone.

    Simon666 : 1:41 PM
    Yves M : 1:44 PM

    So only 3 minutes between them.

    Also Umgi write more early . And he has right understanding,
    but it was not so complex like two other.

    And Simon666 U mast read more carefully at first

    Thank U for right answers!
    "UNIX is simple; it just takes a genius to understand its simplicity!"

  13. #13
    Join Date
    Apr 2002
    Posts
    388
    My name is Ungi not Umgi!!!

    I new that I should have express my solution in bether english and not so complicated.

    dimm_coder, won't you paste the answers or Simon, Yves and me??
    mfg Ungi

    Music, music and VB. VB is like music: You never know how it is interpreted.

  14. #14
    Join Date
    Oct 2001
    Location
    lake of fire and brimstone
    Posts
    1,628
    My name is Ungi not Umgi!!!

    I new...
    It is I knew and dimm_coder probably also made just a typing error.

    And Simon666 U mast read more carefully at first.
    Sorry, but I try minimizing the time I use on this forum, to no advance. I have to admit it: I'm addicted.
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞

  15. #15
    Join Date
    Apr 2002
    Posts
    388
    Originally posted by Simon666

    I have to admit it: I'm addicted.
    Who not???!?
    mfg Ungi

    Music, music and VB. VB is like music: You never know how it is interpreted.

Page 1 of 18 123411 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured