Editorial for MEC '16 P1 - Bat-Doctor


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

This problem is just simple math. Store all the points where there is an X from left to right, then find the atan of the slope between two consecutive points and add 90 degrees to it for the final answer.

Time Complexity: \mathcal{O}(RC) where R is the rows and C is the columns.


Comments

There are no comments at the moment.