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. Can you solve this?

Can you solve this?

Scheduled Pinned Locked Moved The Lounge
htmlcomquestion
15 Posts 13 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.
  • J Jorgen Andersson

    Four people meet and make the following statements. Person 1: One or more of us are lying. Person 2: Two or more of us are lying. Person 3: Three or more of us are lying. Person 4: All of us are lying. Which ones are lying?

    Wrong is evil and must be defeated. - Jeff Ello

    P Offline
    P Offline
    PIEBALDconsult
    wrote on last edited by
    #4

    How many beds are in the room? Are any of the people uncomfortable with sharing a bed with any of the others? Are any OK with lying on the floor? Or on another type of surface?

    1 Reply Last reply
    0
    • J Jorgen Andersson

      Four people meet and make the following statements. Person 1: One or more of us are lying. Person 2: Two or more of us are lying. Person 3: Three or more of us are lying. Person 4: All of us are lying. Which ones are lying?

      Wrong is evil and must be defeated. - Jeff Ello

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #5

      4 is lying, because he if he was telling the truth, that would be a paradox. Therefore, 1 is telling the truth - at least one is lying. If 3 is telling the truth and so is 1 that's two telling teh truth, so 3 is lying as well. Since 3 & 4 are lying, 2 is telling the truth. So 1 & 2 are truthful, 3 & 4 are lying.

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      S M 2 Replies Last reply
      0
      • J Jorgen Andersson

        Four people meet and make the following statements. Person 1: One or more of us are lying. Person 2: Two or more of us are lying. Person 3: Three or more of us are lying. Person 4: All of us are lying. Which ones are lying?

        Wrong is evil and must be defeated. - Jeff Ello

        K Offline
        K Offline
        Kenneth Haugland
        wrote on last edited by
        #6

        They all have Alzheimers so everyone and no one? :^) Nobody told me these people were sane anyway...

        1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          4 is lying, because he if he was telling the truth, that would be a paradox. Therefore, 1 is telling the truth - at least one is lying. If 3 is telling the truth and so is 1 that's two telling teh truth, so 3 is lying as well. Since 3 & 4 are lying, 2 is telling the truth. So 1 & 2 are truthful, 3 & 4 are lying.

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

          S Offline
          S Offline
          Slacker007
          wrote on last edited by
          #7

          for some odd reason, after reading your comment, this popped into my mind: Abbott & Costello Who's On First - YouTube[^] :-D

          OriginalGriffO 1 Reply Last reply
          0
          • S Slacker007

            for some odd reason, after reading your comment, this popped into my mind: Abbott & Costello Who's On First - YouTube[^] :-D

            OriginalGriffO Offline
            OriginalGriffO Offline
            OriginalGriff
            wrote on last edited by
            #8

            The classics are the ones we remember best! :-D

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

            "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
            "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

            1 Reply Last reply
            0
            • J Jorgen Andersson

              Four people meet and make the following statements. Person 1: One or more of us are lying. Person 2: Two or more of us are lying. Person 3: Three or more of us are lying. Person 4: All of us are lying. Which ones are lying?

              Wrong is evil and must be defeated. - Jeff Ello

              S Offline
              S Offline
              snorkie
              wrote on last edited by
              #9

              Are we allowed to waterboard the participants to find out :-D

              Hogan

              J 1 Reply Last reply
              0
              • S snorkie

                Are we allowed to waterboard the participants to find out :-D

                Hogan

                J Offline
                J Offline
                Jorgen Andersson
                wrote on last edited by
                #10

                Well, depends on whether you want the truth or the answer you want. But your question reminded me of this[^] A small warning though, it's politically incorrect on several levels. So if you're sensitive, don't click.

                Wrong is evil and must be defeated. - Jeff Ello

                1 Reply Last reply
                0
                • J Jorgen Andersson

                  Four people meet and make the following statements. Person 1: One or more of us are lying. Person 2: Two or more of us are lying. Person 3: Three or more of us are lying. Person 4: All of us are lying. Which ones are lying?

                  Wrong is evil and must be defeated. - Jeff Ello

                  J Offline
                  J Offline
                  John Stewien
                  wrote on last edited by
                  #11

                  In answer to your question, yes I can solve this.

                  1 Reply Last reply
                  0
                  • J Jorgen Andersson

                    Four people meet and make the following statements. Person 1: One or more of us are lying. Person 2: Two or more of us are lying. Person 3: Three or more of us are lying. Person 4: All of us are lying. Which ones are lying?

                    Wrong is evil and must be defeated. - Jeff Ello

                    K Offline
                    K Offline
                    KateAshman
                    wrote on last edited by
                    #12

                    All of them. Person 1 is lying, because person 1 speaks first, and the statement can't be truthful. Person 2 is lying, because person 2 speaks second, and the statement can't be truthful. Person 3 is lying, because person 3 speaks thirdly, and the statement can't be truthful. Person 4 is lying, because the statement can't be truthful.

                    1 Reply Last reply
                    0
                    • J Jorgen Andersson

                      Four people meet and make the following statements. Person 1: One or more of us are lying. Person 2: Two or more of us are lying. Person 3: Three or more of us are lying. Person 4: All of us are lying. Which ones are lying?

                      Wrong is evil and must be defeated. - Jeff Ello

                      R Offline
                      R Offline
                      realJSOP
                      wrote on last edited by
                      #13

                      Are they making their statements one at a time and in the order implied, or are they all talking at once. If they're all talking at once, they're women, and women lie, so they're all lying. What you have to worry about is when they all stop talking. That's when you know you're in trouble.

                      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                      -----
                      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                      -----
                      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                      1 Reply Last reply
                      0
                      • OriginalGriffO OriginalGriff

                        4 is lying, because he if he was telling the truth, that would be a paradox. Therefore, 1 is telling the truth - at least one is lying. If 3 is telling the truth and so is 1 that's two telling teh truth, so 3 is lying as well. Since 3 & 4 are lying, 2 is telling the truth. So 1 & 2 are truthful, 3 & 4 are lying.

                        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                        M Offline
                        M Offline
                        Member_14884492
                        wrote on last edited by
                        #14

                        That is the answer I came up with also.

                        1 Reply Last reply
                        0
                        • J Jorgen Andersson

                          Four people meet and make the following statements. Person 1: One or more of us are lying. Person 2: Two or more of us are lying. Person 3: Three or more of us are lying. Person 4: All of us are lying. Which ones are lying?

                          Wrong is evil and must be defeated. - Jeff Ello

                          U Offline
                          U Offline
                          User 14060113
                          wrote on last edited by
                          #15

                          There might be more than 1 solution, I don't know. But one valid solution is:

                          Statement TRUE FALSE
                          One or more of us are lying. x
                          Two or more of us are lying. x
                          Three or more of us are lying. x
                          All of us are lying. x

                          I solved this with brute force, as there are only 16 possible combinations. But you can also approach this heuristically: If two or more are lying, then one or more are lying all the more. Same goes for 3 => 2 and all => 3. So the answer can only consist of one or more TRUEs followed by one or more FALSEs. So, this is the only valid answer. Aside from: "Who cares?" ;-) But obviously at least I do. :-(

                          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