Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. TWCP OTD (The Who Cares Puzzle Of The Day) - 2st of February, 2017

TWCP OTD (The Who Cares Puzzle Of The Day) - 2st of February, 2017

Scheduled Pinned Locked Moved The Lounge
helpquestionlounge
19 Posts 10 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • OriginalGriffO OriginalGriff

    Assuming there is an equal number of black and white hats, the guy at the tail end of the queue can see every hat except his own. He can correctly guess the colour of his own. The guy in front of him uses that and the hats he can see to say what colour his hat is, and so on.

    Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu PeterK Offline
    Kornfeld Eliyahu Peter
    wrote on last edited by
    #10

    The number of black and white hats is unknown...

    Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

    "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

    W 1 Reply Last reply
    0
    • Richard DeemingR Richard Deeming

      Kornfeld Eliyahu Peter wrote:

      Those are guess wrong will be executed...

      Then they should all refuse to guess! :-D


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      W Offline
      W Offline
      W Balboos GHB
      wrote on last edited by
      #11

      Alas - just after you left I asked the warden about that. He said it's guess or die. (my answer to the unsaid is better, so there!)

      Ravings en masse^

      "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

      "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

      1 Reply Last reply
      0
      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

        The number of black and white hats is unknown...

        Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

        W Offline
        W Offline
        W Balboos GHB
        wrote on last edited by
        #12

        Martyr's solution: Tell the person in front of you their hat color. Take your guess and hope they can all thank you later.

        Ravings en masse^

        "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

        "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

        Kornfeld Eliyahu PeterK 1 Reply Last reply
        0
        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

          ALL MEN MUST DIE? The warden of an overloaded prison decided to ease the situation in a somehow brutal way... He told to the inmates, that from the next day he will line up the inmates from each section (between 20 to 30) in a way that they can see the inmates before them, but not those behind. The guards will but a black or white party-hat on the head of each inmate in a random way... From back to front, each prisoner have to say what color the hat is on his own head. Those are guess wrong will be executed... What the inmates can do?

          Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

          Richard DeemingR Offline
          Richard DeemingR Offline
          Richard Deeming
          wrote on last edited by
          #13

          Are there an infinite number of prisoners? Death by infinity puzzles and Axiom of Choice - YouTube[^]


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

          1 Reply Last reply
          0
          • W W Balboos GHB

            Martyr's solution: Tell the person in front of you their hat color. Take your guess and hope they can all thank you later.

            Ravings en masse^

            "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

            "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

            Kornfeld Eliyahu PeterK Offline
            Kornfeld Eliyahu PeterK Offline
            Kornfeld Eliyahu Peter
            wrote on last edited by
            #14

            That will break on the first color change...

            Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

            "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

            W 1 Reply Last reply
            0
            • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

              That will break on the first color change...

              Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

              W Offline
              W Offline
              W Balboos GHB
              wrote on last edited by
              #15

              No - each prisoner looks at the prisoner in front of them and reports his hat color to him - they can then do the same for the next prisoner and announce (correctly) their own hat color since it was told to them by the prisoner behind them. They can all be the same color or any number of identifiable colors. Only fails if there are liars or blind prisoners - but picks up again.

              Ravings en masse^

              "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

              "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

              1 Reply Last reply
              0
              • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                ALL MEN MUST DIE? The warden of an overloaded prison decided to ease the situation in a somehow brutal way... He told to the inmates, that from the next day he will line up the inmates from each section (between 20 to 30) in a way that they can see the inmates before them, but not those behind. The guards will but a black or white party-hat on the head of each inmate in a random way... From back to front, each prisoner have to say what color the hat is on his own head. Those are guess wrong will be executed... What the inmates can do?

                Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                K Offline
                K Offline
                Kevin Marois
                wrote on last edited by
                #16

                Ask the guy behind you what color your hat is

                If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                1 Reply Last reply
                0
                • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                  ALL MEN MUST DIE? The warden of an overloaded prison decided to ease the situation in a somehow brutal way... He told to the inmates, that from the next day he will line up the inmates from each section (between 20 to 30) in a way that they can see the inmates before them, but not those behind. The guards will but a black or white party-hat on the head of each inmate in a random way... From back to front, each prisoner have to say what color the hat is on his own head. Those are guess wrong will be executed... What the inmates can do?

                  Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                  M Offline
                  M Offline
                  Mark_Wallace
                  wrote on last edited by
                  #17

                  Paint their, *ahem* "appendages" with silver paint, drop their trousers, and look at the hat in the reflection. To every problem, there's always an easy solution.

                  I wanna be a eunuchs developer! Pass me a bread knife!

                  1 Reply Last reply
                  0
                  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                    ALL MEN MUST DIE? The warden of an overloaded prison decided to ease the situation in a somehow brutal way... He told to the inmates, that from the next day he will line up the inmates from each section (between 20 to 30) in a way that they can see the inmates before them, but not those behind. The guards will but a black or white party-hat on the head of each inmate in a random way... From back to front, each prisoner have to say what color the hat is on his own head. Those are guess wrong will be executed... What the inmates can do?

                    Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                    K Offline
                    K Offline
                    Kirk 10389821
                    wrote on last edited by
                    #18

                    The Prisoners, realizing that the warden will be fired if they all die, all answer RED! He kills them all, is fired for there are no prisoners, and they get their revenge! Oh, and the guards end up working for walmart. Or they all sneeze at the same time and all the hats FALL OFF Magically. Or they tell the guy in front of them, and the last guy changes places with the second from last guy when the guards are not looking.

                    1 Reply Last reply
                    0
                    • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                      I told - the warden is a brutal creature...

                      Skipper: We'll fix it. Alex: Fix it? How you gonna fix this? Skipper: Grit, spit and a whole lotta duct tape.

                      F Offline
                      F Offline
                      Frank Malcolm
                      wrote on last edited by
                      #19

                      The way I heard it, one guess is allowed to be wrong, if more than one then all prisoners die. You can't turn around, only see the prisoners in front, can only provide one answer. Very difficult for many, quite simple for those of us who lived in the early days of serial communications and error-prone memory.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups