Can someone help me with this question?

https://www.codechef.com/UCSL2020/problems/ENDLE002

hello @juyal.sid

solve rat chases its cheese problem of ur course.
this is exaclty same problem.

Please make changes in this so to get the row major exact output as given in my question?

can you please make changes in above answer to get the exact output as required in the codechef problem.

@juyal.sid

pls refer this->

have discussced the same question along with solution.
dont copy the exact same solution write ur own otherwise u will get plaigrism.

next time onwards pls dont ask any ongoing contest question.

@juyal.sid
dont submit his code .

haan bhaiya
ho gya mera apna
no problem.

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.