Program relaed to help ramu

Please tell where am i wrong ,below is my code! https://ide.codingblocks.com/s/315501

hi anisha,
Your logic is correct.
In code after calculating cost of rickshaw and cab u have to take minimum of ans1 and c3,instead you were taking minimum of ans2 and c4.
same is case with cab.


I have marked those points in the above code.
Please let me know if you need any other help.

1 Like


i m still getting the same output!please help

hi anisha,
you are doing a very minor mistake in taking the input.


Please let me know if you need any other help.

1 Like

yeah its working fine now but test case 0 is not getting passed other cases are getting passed why?

@anisha2001singhal initialize ans1 and ans2 with 0 for every testcase.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.