Sort 20 Discussions, By:

Sorry, you do not have a permission to answer to this question.

  • Ronnie007 9 years ago + 0 comments

    My last two submissions for this problem still haven't been processed. Is there a problem with the grader?

    Add Reply Preview cancel

    Sorry, you do not have a permission to answer to this question.

    • phegde 9 years ago + 0 comments

      @admin am getting the message "compile time error", but it is not displaying the error message. And my code is compiling properly in my machine. can you please check

      Add Reply Preview cancel

      Sorry, you do not have a permission to answer to this question.

      • Tmlewallen 9 years ago + 1 comment

        I'm sorry, but I'm missing how this is solved without knowing P and Q? In the example, where does P=5 Q=8 come from?

        Add Reply Preview cancel

        Sorry, you do not have a permission to answer to this question.

        • hossameldeenfci 9 years ago + 0 comments

          Among all possible positions of X, it seems like choosing P=5 Q=8 is the best solution in this case. So, P=5 Q=8 is not a given, it's a particular solution to this test case that the author calculated somehow, I think.

          Add Reply Preview cancel

          Sorry, you do not have a permission to answer to this question.

        • droidkid 9 years ago + 0 comments

          Hey, not able to submit for this question, I'm getting a compile time error and previous submissions are not being judged.

          Add Reply Preview cancel

          Sorry, you do not have a permission to answer to this question.

          • Vaibhav2k13 9 years ago + 2 comments

            Since u said we have to print the 'minimum' amount he has to spend, in the first test case if X = 6 then he spends only $3. So isnt that supposed to be the 'minimum' instead of 5 which is given?

            Add Reply Preview cancel

            Sorry, you do not have a permission to answer to this question.

            • nikasvanidze Challenge Author 9 years ago + 0 comments

              minimum money he will need (in worst situation).

              Add Reply Preview cancel

              Sorry, you do not have a permission to answer to this question.

              • elQusiry 9 years ago + 0 comments

                if the box that needs the most money to find was 7 for example and it costed him 10 because there is a chance that the box with the candy is the one that costs the most to find.

                Add Reply Preview cancel

                Sorry, you do not have a permission to answer to this question.

              1. Challenge Walkthrough
                Let's walk through this sample challenge and explore the features of the code editor.1 of 6
              2. Review the problem statement
                Each challenge has a problem statement that includes sample inputs and outputs. Some challenges include additional information to help you out.2 of 6
              3. Choose a language
                Select the language you wish to use to solve this challenge.3 of 6
              4. Enter your code
                Code your solution in our custom editor or code in your own environment and upload your solution as a file.4 of 6
              5. Test your code
                You can compile your code and test it for errors and accuracy before submitting.5 of 6
              6. Submit to see results
                When you're ready, submit your solution! Remember, you can go back and refine your code anytime.6 of 6
              1. Check your score