SHARE
TWEET

Untitled

Alinchik Jul 18th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top