Editorial for CCC '17 J1 - Quadrant Selection
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.
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
The problem is asking you to find which quadrant a given point belongs to.
A point at coordinates lies in quadrant since both its and values are positive.
A point at coordinates lies in quadrant since its value is negative and its value is positive.
A point at coordinates lies in quadrant since both its and values are negative.
A point at coordinates lies in quadrant since its value is positive and its value is negative.
Time Complexity:
Comments