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. Friday Problem

Friday Problem

Scheduled Pinned Locked Moved The Lounge
help
14 Posts 10 Posters 2 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.
  • N Nagy Vilmos

    I don't think it is that difficult but here goes: There are three chests - [a], [b] and [c] - and they are labelled: [a] 100 gold coins [b] 50 gold coins and 50 silver coins [c] 100 silver coins But all the labels are on the wrong chests. You are allowed to examine one coin from one chest only and from that you must find which one has all the gold.

    veni bibi saltavi

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

    Ask ChestA what ChestB would answer if you asked it which one held all the gold.

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

    "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
    • N Nagy Vilmos

      I don't think it is that difficult but here goes: There are three chests - [a], [b] and [c] - and they are labelled: [a] 100 gold coins [b] 50 gold coins and 50 silver coins [c] 100 silver coins But all the labels are on the wrong chests. You are allowed to examine one coin from one chest only and from that you must find which one has all the gold.

      veni bibi saltavi

      D Offline
      D Offline
      den2k88
      wrote on last edited by
      #3

      Take all three and blast away any who opposes. Also, 165 GP of treasure stops being useful at level 3 :D

      GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver "When you have eliminated the JavaScript, whatever remains must be an empty page." -- Mike Hankey

      N 1 Reply Last reply
      0
      • N Nagy Vilmos

        I don't think it is that difficult but here goes: There are three chests - [a], [b] and [c] - and they are labelled: [a] 100 gold coins [b] 50 gold coins and 50 silver coins [c] 100 silver coins But all the labels are on the wrong chests. You are allowed to examine one coin from one chest only and from that you must find which one has all the gold.

        veni bibi saltavi

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #4

        I would take a coin from the one labeled '50 gold, 50 silver'. The label is wrong, so it must be a chest with either all gold or all silver. If I get a gold coin, then I have already found the right chest. If I get a silver coin, then the chest with '100 gold' must be the one with 50 gold and 50 silver, leaving only the chest with '100 silver' to have the 100 gold coins. it can't be the other way around or else the label '100 gold' would be true.

        The language is JavaScript. that of Mordor, which I will not utter here
        This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
        "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

        1 Reply Last reply
        0
        • D den2k88

          Take all three and blast away any who opposes. Also, 165 GP of treasure stops being useful at level 3 :D

          GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++*      Weapons extension: ma- k++ F+2 X If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver "When you have eliminated the JavaScript, whatever remains must be an empty page." -- Mike Hankey

          N Offline
          N Offline
          Nagy Vilmos
          wrote on last edited by
          #5

          Is... ... the correct answer! :laugh:

          veni bibi saltavi

          1 Reply Last reply
          0
          • N Nagy Vilmos

            I don't think it is that difficult but here goes: There are three chests - [a], [b] and [c] - and they are labelled: [a] 100 gold coins [b] 50 gold coins and 50 silver coins [c] 100 silver coins But all the labels are on the wrong chests. You are allowed to examine one coin from one chest only and from that you must find which one has all the gold.

            veni bibi saltavi

            H Offline
            H Offline
            Haakon S
            wrote on last edited by
            #6

            Open the chest that says 50 gold / 50 silver. If this contains a gold coin, this is the chest. If it contains a silver coin, it is the chest that says 100 silver coins that contain the 100 gold coins.

            S 1 Reply Last reply
            0
            • N Nagy Vilmos

              I don't think it is that difficult but here goes: There are three chests - [a], [b] and [c] - and they are labelled: [a] 100 gold coins [b] 50 gold coins and 50 silver coins [c] 100 silver coins But all the labels are on the wrong chests. You are allowed to examine one coin from one chest only and from that you must find which one has all the gold.

              veni bibi saltavi

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #7

              I would substitute coins for bottles of gin. Then skip the whole challenge as I know all chests will already be empty. :laugh:

              1 Reply Last reply
              0
              • N Nagy Vilmos

                I don't think it is that difficult but here goes: There are three chests - [a], [b] and [c] - and they are labelled: [a] 100 gold coins [b] 50 gold coins and 50 silver coins [c] 100 silver coins But all the labels are on the wrong chests. You are allowed to examine one coin from one chest only and from that you must find which one has all the gold.

                veni bibi saltavi

                P Offline
                P Offline
                phil o
                wrote on last edited by
                #8

                I would check the [b], which should have either 100 gold coins, or 100 silver coins, according to the predicate. If it has 100 gold coins, problem solved. If it has 100 silver coins, the gold coins are in the '100 silver soins' labelled chest.

                I never finish anyth

                1 Reply Last reply
                0
                • N Nagy Vilmos

                  I don't think it is that difficult but here goes: There are three chests - [a], [b] and [c] - and they are labelled: [a] 100 gold coins [b] 50 gold coins and 50 silver coins [c] 100 silver coins But all the labels are on the wrong chests. You are allowed to examine one coin from one chest only and from that you must find which one has all the gold.

                  veni bibi saltavi

                  P Offline
                  P Offline
                  phil o
                  wrote on last edited by
                  #9

                  I would check the [b], which should have either 100 gold coins, or 100 silver coins, according to the predicate. If it has 100 gold coins, problem solved. If it has 100 silver coins, the gold coins are in the '100 silver soins' labelled chest.

                  I never finish anyth

                  1 Reply Last reply
                  0
                  • N Nagy Vilmos

                    I don't think it is that difficult but here goes: There are three chests - [a], [b] and [c] - and they are labelled: [a] 100 gold coins [b] 50 gold coins and 50 silver coins [c] 100 silver coins But all the labels are on the wrong chests. You are allowed to examine one coin from one chest only and from that you must find which one has all the gold.

                    veni bibi saltavi

                    M Offline
                    M Offline
                    megaadam
                    wrote on last edited by
                    #10

                    I would look around - and I would not give before I find the chest labeled DD.

                    Life is too shor

                    1 Reply Last reply
                    0
                    • H Haakon S

                      Open the chest that says 50 gold / 50 silver. If this contains a gold coin, this is the chest. If it contains a silver coin, it is the chest that says 100 silver coins that contain the 100 gold coins.

                      S Offline
                      S Offline
                      Stanley_B707
                      wrote on last edited by
                      #11

                      if label-50:50 has gold coin then it can be 100g or 100s both options meet false labelling rule - option 100s is not valid - gold coin is proof if label-50:50 has silver coin then it can be 100g or 100s both options meet false labelling rule - option 100g is not valid - silver coin is proof

                      F 1 Reply Last reply
                      0
                      • S Stanley_B707

                        if label-50:50 has gold coin then it can be 100g or 100s both options meet false labelling rule - option 100s is not valid - gold coin is proof if label-50:50 has silver coin then it can be 100g or 100s both options meet false labelling rule - option 100g is not valid - silver coin is proof

                        F Offline
                        F Offline
                        F ES Sitecore
                        wrote on last edited by
                        #12

                        If you take a gold coin from the 50\50 then it has to be all gold - the only possible contents are 100g and 50\50 but the labels are wrong and as it is labelled 50\50 it has to be all gold, so problem solved. If the 50\50 has a silver it must be all silver for the same reason. If the 50\50 is really all silver then the box with silver label must be wrong...the box labelled silver can't be all silver so must be all gold or 50\50....however if it is 50\50 then that means the box labelled gold is really all gold which can't be true as the labels are wrong. So the box labelled gold must be 50\50, the box labelled 50\50 must be silver and the box labelled silver must be gold, so problem solved.

                        S 1 Reply Last reply
                        0
                        • F F ES Sitecore

                          If you take a gold coin from the 50\50 then it has to be all gold - the only possible contents are 100g and 50\50 but the labels are wrong and as it is labelled 50\50 it has to be all gold, so problem solved. If the 50\50 has a silver it must be all silver for the same reason. If the 50\50 is really all silver then the box with silver label must be wrong...the box labelled silver can't be all silver so must be all gold or 50\50....however if it is 50\50 then that means the box labelled gold is really all gold which can't be true as the labels are wrong. So the box labelled gold must be 50\50, the box labelled 50\50 must be silver and the box labelled silver must be gold, so problem solved.

                          S Offline
                          S Offline
                          Stanley_B707
                          wrote on last edited by
                          #13

                          truth I actually said what Haakon and you said :(

                          1 Reply Last reply
                          0
                          • N Nagy Vilmos

                            I don't think it is that difficult but here goes: There are three chests - [a], [b] and [c] - and they are labelled: [a] 100 gold coins [b] 50 gold coins and 50 silver coins [c] 100 silver coins But all the labels are on the wrong chests. You are allowed to examine one coin from one chest only and from that you must find which one has all the gold.

                            veni bibi saltavi

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

                            It's the chest labeled "beware of the leopard". :thumbsup:

                            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