Advertisement
ayshan

Graphics(Slides)

Apr 1st, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. # A -ci
  2.  
  3. x,y = map(int,input().split())
  4.  
  5. if (x*x + y*y) >= 4 and y <= x and x <= 2:
  6.  
  7. print("daxxildir")
  8.  
  9. else:
  10.  
  11. print("daxil deyil")
  12.  
  13. # A 2-ci
  14.  
  15. import math
  16.  
  17. x,y = map(int,input().split())
  18.  
  19. if y <= math.sin(x) and 0<= y <= 0.5 and x >= 0:
  20.  
  21. print("daxildir")
  22.  
  23. else:
  24.  
  25. print("daxil deyil")
  26.  
  27. # B 1-ci
  28.  
  29. x,y = map(int,input().split())
  30.  
  31. if (x*x + y*y) <= 1 and x <= 0 or (x*x + y*y) <= 1 and y >= x and x >= 0:
  32.  
  33. print("daxildir")
  34.  
  35. else:
  36.  
  37. print("daxil deyil")
  38.  
  39. # B 2 - ci
  40.  
  41.  
  42.  
  43. x,y = map(int,input().split())
  44.  
  45. if y >= (2-x) and y <= x*x and x < 0\
  46.  
  47. y <= (2 - x) and y <= x*x and x >=0 and y >= 0:
  48.  
  49. print("daxildir")
  50.  
  51. else:
  52.  
  53. print("daxil deyil")
  54.  
  55. # B 3-cu
  56.  
  57.  
  58.  
  59. x,y = map(int,input().split())
  60.  
  61. if (x*x + y*y) <= 1 and x >= 0 or (x*x + y*y) >= 1 and y <=1 and y >= (x- 1):
  62.  
  63. print("daxildir")
  64.  
  65. else:
  66.  
  67. print("daxil deyil")
  68.  
  69. # C 1-ci
  70.  
  71.  
  72.  
  73. x,y = map(int,input().split())
  74.  
  75. if y >+ (2-x) and y >= x*x and x<0\
  76.  
  77. or y >= x*x and y <= (4 - x*x) and x <= 0 and y >= 0\
  78.  
  79. or y <= x*x and y <= (2-x) and x >= 0 and y >= 0\
  80.  
  81. or y >= x*x and y >= (4-x*x) and x >= 0 and y >= 0:
  82.  
  83. print("daxildir")
  84.  
  85. else:
  86.  
  87. print("daxil deyil")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement