Editorial for DMOPC '21 Contest 1 P5 - Perfect Cross
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
Subtask 1
First of all, we should rotate the points and queries by
Time Complexity:
Subtask 2
Let's see if we can extend the observation above to apply to the full solution. We should note that after rotation, the range of points which lie within
Time Complexity:
Comments