Advertisement
ayshan

Graphics2

Apr 1st, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. #1
  2. x,y = map(float,input().split())
  3. if y >= x**2 and y <=1 or\
  4. y <= -x**2 and y >2 -1:
  5. print("daxildir")
  6. else:
  7. print("daxil deyil")
  8. #2
  9. x,y = map(float,input().split())
  10. if y >= 1/x and y <=x or\
  11. y <= 1/x and y >= (-x -4):
  12. print("daxildir")
  13. else:
  14. print("daxil deyil")
  15. #3
  16. x,y = map(float,input().split())
  17. if y <=((x+1) **2 + y ** 2) or\
  18. y <= ((x-1)**2 + y ** 2) or\
  19. y >=-1 and y<= 1 and x>=-1 and x<= 1:
  20. print("daxildir")
  21. else:
  22. print("daxil deyil")
  23. #4
  24. x,y = map(float,input().split())
  25. r1,r2 = map(float,input().split())
  26. if (x**2 + y**2) <= r1 **2 and x<=0 and y>=0 or\
  27. (x**2 + y ** 2) >= r1 **2 and (x **2 + y ** 2) <= r2 **2 and y<=0 and x >= 0:
  28. print("daxildir")
  29. else:
  30. print("daxil deyil")
  31.  
  32. #5
  33. x,y=map(float,input().split())
  34. if y<=x and y>=(x-2)**2-3 and y>=0 or y<=-x and y>=(x-2)**2-3 and y<=0:
  35. print("daxil")
  36. else:
  37. print("deyil")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement