Code isnt giving the desired output

i am not getting the output that i should be and i dont see any problem with my code, please help me debug it

Hey @devchopra999_11c6416ab7f09bbf,
Can you send me your code again as its not opening.

Hey @devchopra999_11c6416ab7f09bbf,
First of all you are not taking the input right way, first try take just input of all numbers in test case then continue further.


how am i not taking input the right way? i printed the value of m and n and they are giving the correct value now
I figured out that there was a problem in my loop not the inputs and fixed it

Hey @devchopra999_11c6416ab7f09bbf,
Ok that’s great.

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.