Advertisement
Guest User

Untitled

a guest
Dec 16th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. import math
  2. import sys
  3.  
  4. R, X, Y = map(int, input().split())
  5.  
  6. x, y, m = map(int, input().split())
  7.  
  8. for i in range(2):
  9. x_new, y_new, m_new = map(int, input().split())
  10.  
  11. if m_new < m:
  12. x = x_new
  13. y = y_new
  14. m = m_new
  15.  
  16. d = math.sqrt((x - X) * (x - X) + (y - Y) * (y - Y))
  17.  
  18. if d < R:
  19. print("What a beauty!")
  20. else:
  21. print("Time to move my telescope!")
  22.  
  23. # x_a, y_a, m_a = int(input.split())
  24. # x_b, y_b, m_b = int(input.split())
  25. # x_c, y_c, m_c = int(input.split())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement