Advertisement
Guest User

Square

a guest
Dec 15th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. import math
  2. n = int(input())
  3. m = int(input())
  4. t = int(input())
  5. D = 4*((n+m)**2) - 16*t
  6. ans = (2*m+2*n - (D**(1/2)))/8
  7. print(math.floor(ans))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement