Logic is correct also sample test case runs corectly but shows wa on submitting
i am taking the same input format. for every test case the ans has to be printed in a separate line
any further inputs? can u give a reference?
as per input format you will be given first all the elements of COST array and then in next line you will be given all elements of PETROL array but you are taking both of them simultaneously together.
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.