Advertisement
Alinchik

Untitled

Jul 18th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. x = int(input())
  2. y = int(input())
  3. z = int(input())    
  4. x2 = int(input())  
  5. y2 = int(input())  
  6. z2 = int(input())    
  7. if x>y and x2>y2:
  8.       m = (x-y)/2
  9.       m2 = (x2-y2)/2
  10. else:
  11.       m = (y-x)/2
  12.       m2 = (y2-x2)/2
  13. bok_s1 = (m**2+z**2)**0.5
  14. bok_s2 = (m2**2+z2**2)**0.5
  15. p_1 = 2*bok_s1+y+x
  16. p_2 = 2*bok_s2+y2+x2
  17.    
  18. print(p_1+p_2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement