My code is not giving correct output according to the input kindly modify the code but dont modify my approach.
Here is my code: https://ide.codingblocks.com/s/252865
My code is not giving correct output according to the input kindly modify the code but dont modify my approach.
Here is my code: https://ide.codingblocks.com/s/252865
@navin_japes your approach is correct you are just doing wrong in taking input and printing output.
just read problem statement, input format and output format carefully once again, you will get what you are doing wrong in your code.
and clear your ans vector for every test case.
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.