Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- d=int(input())
- x=int(input())
- y=int(input())
- x1=0; y1=0; x2=d; y2=0; x3=0; y3=d;
- k=(x1-x)*(y2-y1)-(x2-x1)*(y1-y);
- m=(x2-x)*(y3-y2)-(x3-x2)*(y2-y);
- n=(x3-x)*(y1-y3)-(x1-x3)*(y3-y);
- if (k>=0 and m>=0 and n>=0):
- print (1)
- else:
- print(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement