Find Number
-
Ronnie007 9 years ago My last two submissions for this problem still haven't been processed. Is there a problem with the grader?
-
Tmlewallen 9 years ago 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?
-
hossameldeenfci 9 years ago 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.
-
-
droidkid 9 years ago Hey, not able to submit for this question, I'm getting a compile time error and previous submissions are not being judged.
-
Vaibhav2k13 9 years ago 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?
-
nikasvanidze 9 years ago minimum money he will need (in worst situation).
-
elQusiry 9 years ago 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.
-
Sort 20 Discussions, By:
Please Log In in order to post a comment