Problem:
Score : 300 points

Problem Statement

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, print No.

Sample Input 1

2 3 9

Sample Output 1

No

\sqrt{2} + \sqrt{3} < \sqrt{9} does not hold.

Sample Input 2

2 3 10

Sample Output 2

Yes

\sqrt{2} + \sqrt{3} < \sqrt{10} holds.

Solution in Ruby (2.3.3) (judge verdict: Accepted)

input = gets.chomp.split
a = input[0].to_i
b = input[1].to_i
c = input[2].to_i

left = (c - a - b) ** 2
right = 4 * a * b
c_a_b = c - a - b > 0 ? true : false

if c_a_b && left > right
    puts "Yes"
else
    puts "No"
end

# if c_a_b
#     if left > right
#         puts "Yes"
#     else
#         puts "No"
#     end
# else
#     if left < right
#         puts "Yes"
#     else
#         puts "No"
#     end
# end