Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def perimetr(BE, AD, BC):
- AE=(AD-BC)/2 #меньший катет прямоугольного треугольника AEB
- AB=(AE**2 + BE**2) **0.5 #гипотенуза AEB и одна из боковых сторон ABCD
- P=AB*2 + AD + BC
- return(P)
- x1 = perimetr(int(input()), int(input()), int(input()))
- x2 = perimetr(int(input()), int(input()), int(input()))
- print(x1+x2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement