COPS Cops and the Thief Devu

My solution seems to be working fine for the given sample cases but on submission it produces a wrong output.
Question : https://www.codechef.com/problems/COPS
My solution : https://www.codechef.com/viewsolution/14544209
If anyone could help me

Your code looks fine, but you are printing the output in the same line.

So, just add a newline after printing the answer and it should get Accepted (AC).

1 Like