Advertisement
Guest User

13 test

a guest
Jun 25th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. a = int(input())
  2. b = int(input())
  3. c = int(input())
  4. h = 0
  5. n = 0
  6. if a + b <= c or a + c <= b or b + c <= a\
  7.         or a <= 0 or b <= 0 or c <= 0:
  8.     n = 1
  9.     print('impossible')
  10. if a < b:
  11.     a, b = b, a
  12.     if a < c:
  13.         a, c = c, a
  14. if n != 1 and a ** 2 == (b ** 2 + c ** 2):
  15.     print('rectangular')
  16. elif n != 1 and a ** 2 > (b ** 2 + c ** 2) or a == b == c:
  17.     print('acute')
  18. elif n != 1 and a ** 2 < (b ** 2 + c ** 2):
  19.     print('obtuse')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement