Advertisement
AlimusSifar

Pythagoras Rocks - Toph.co - Sorting

Apr 29th, 2020
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. X, Y, Z = map(int, input().split())
  2.  
  3. if(X**2 + Y**2) == Z**2:
  4.         print(Z)
  5. elif(Y**2 + Z**2) == X**2:
  6.         print(X)
  7. elif(X**2 + Z**2) == Y**2:
  8.         print(Y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement