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 :
My solution :
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