SHARE
TWEET

Untitled

karolinagergert Jul 21st, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def perimetr(BE, AD, BC):
  2.     AE=(AD-BC)/2 #меньший катет прямоугольного треугольника AEB
  3.     AB=(AE**2 + BE**2) **0.5 #гипотенуза AEB и одна из боковых сторон ABCD
  4.     return AB*2 + AD + BC
  5.  
  6. BE1, AD1, BC1 = int(input()), int(input()), int(input())
  7. BE2, AD2, BC2 = int(input()), int(input()), int(input())
  8. print((perimetr(BE1, AD1, BC1)+(perimetr(BE2, AD2, BC2))
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