I have not found any kind of error in this.https://www.codechef.com/viewsolution/27938350
Thanks in advance
You were required to output the final co-ordinates , but used the abs function , so wouldn’t that print out the absolute value, whereas the co-ordinates can also be negative?
Try this testcase:
Your code gives the wrong answer for this testcase
this is the answer coming after removing modulas.
But still it is giving wa
Did that too…
The correct answer is:
Bro can u explain why it is the correct answer
steps 2 to 4 will be performed in test case 2
I got it…
This video editorial might be useful for understanding the concept behind ROBOTS problem of november’19 cook off : https://youtu.be/lzOeULFKSXI