WA in ADAKNG

https://www.codechef.com/viewsolution/35604008

in my solution i first filled the king then filled k-1 empty spaces and then remaining places with blocked paths . Is my approach wrong , can some one help me with my code…

cout << mat[i][j] << ’ ';

I think there shouldn’t be the extra space there.
Remove it and try to submit.

yeah i did it and it got accepted thanks for pointing out

1 Like

No problem.:+1:

1 Like