Problem 43078. How many bottles can you drink?
Solution Stats
Problem Comments
-
1 Comment
Jean-Marie Sainthillier
on 3 Nov 2017
Good problem but add more tests please.
Solution Comments
-
3 Comments
bainhome
on 24 Mar 2018
this shouldn't pass the test. this kindda glitch could be avoided if more test were added.
David Verrelli
on 7 Jun 2018
Hello, bainhome. I agree that more test cases should be included in the Test Suite (a minimum of four cases). It would be instructive if you could suggest specific test cases which this submission wouldn't pass. —DIV
David Verrelli
on 7 Jun 2018
One such test case would be x=1, p=1, c=0.9; the correct solution for this should be y=1.
-
1 Comment
Said BOUREZG
on 11 May 2017
I think results must be 15, 18 not 14, 17
Problem Recent Solvers72
Suggested Problems
-
8394 Solvers
-
Back to basics 11 - Max Integer
755 Solvers
-
Back to basics 12 - Input Arguments
571 Solvers
-
304 Solvers
-
807 Solvers
More from this Author12
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!