Which quarter?#918

Which quarter? (Editorial)

Written By : MathModel

We've the quaraters enumeration as above , so we casework with noting that the answer is if any of the following holds:

The main condition is :

Make sure to read as float/double numbers.

x,y=map(float,input().split())
if(x>0 and y>0):
    print(1)
elif(x>0 and y<0):
    print(4)
elif(x<0 and y>0):
    print(2)
elif(x<0 and y<0):
    print(3)
else:
    print(0)

Complexity .