Does \sqrt{a} + \sqrt{b} < \sqrt{c} hold? Constraints * 1 \leq a, b, c \leq 10^9 * All…
- User
Does \sqrt{a} + \sqrt{b} < \sqrt{c} hold?
Constraints
- 1 \leq a, b, c \leq 10^9
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
a \ b \ c
Output
If \sqrt{a} + \sqrt{b} < \sqrt{c}, print
Yes; otherwise, printNo.Examples
Input
2 3 9
Output
No
Input
2 3 10
Output
Yes
Assistant
pythona, b, c = map(int, input().split()) sum_ab = a + b if c <= sum_ab: print("No") else: d = c - sum_ab left = 4 * a * b right = d * d print("Yes" if left < right else "No")
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.