Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. s = input()
  2. t = s.split()
  3. result = ""
  4. for i in range(0, len(t), 2):
  5.     x = float(t[i])
  6.     y = float(t[i + 1])
  7.     if (x + 3) ** 2 + 4 > y and (x + 1) ** 2 - 5 > y and (x + 3) ** 2 + (y - 4) ** 2 > 25:
  8.         result += "YES "
  9.     else:
  10.         result += "NO "
  11. result[:-1]
  12. print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement