0

Can someone help.. Idk why my expected output is wrong

Sequential problem https://code.sololearn.com/cIfcC1gvEyU0/?ref=app

12th Nov 2021, 2:45 AM
Christian Jay Medallo
Christian Jay Medallo - avatar
2 odpowiedzi
+ 4
According to the description, if it costs 10.00 for every 250 meters, then 1.25 kilometers would be 50.00 and 2.5 kilometers for 100.00, not 1.2 and 2.3. So, either the explanation is incorrect or your expectation is incorrect, but the math doesn't lie. Also, what's up with line 6? Maybe remove it or comment it out.
12th Nov 2021, 3:04 AM
ChaoticDawg
ChaoticDawg - avatar
+ 1
Thanks for the clarification.. Sadly thats the problem given to us.. Maybe the explanation to it is incorrect
12th Nov 2021, 3:12 AM
Christian Jay Medallo
Christian Jay Medallo - avatar