hey, actually i’m not able to understand that in this problem link text and for this code and test case link text
how come 2 mirrors are sufficient please explain…
(calculated ans in code is shown wrong on spoj toolkit)
Well, i don’t know how to solve this problem, but i understand the test case u mentioned…
In following test Case
C…
*
…*
C*
.*
.
…
You can place mirrors at positions marked ‘/’ and ‘\’ which is the required positions…
C**\**…
*
…*
C**/***
.*
.
…
Please UPVOTE and ACCEPT if you find this helpful…
Feel free to ask anything…
oops… I thought that we can’t place mirrors on the obstacles .