Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (x ** 2 + y ** 2 < 5) and (x ** 2 - 3 > y) and (0.5 * x - 1 < y): # правый участок
- return "Yes"
- elif (x ** 2 + y ** 2 > 5) and (x ** 2 - 3 < y) and (0.5 * x - 1 > y): # средний участок
- return "Yes"
- elif (x ** 2 + y ** 2 < 5) and (x ** 2 - 3 > y) and (0.7 * x - 1 < y): # левый участок
- return "Yes"
- else:
- return "No"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement