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 Scala (2.11.7) (judge verdict: Wrong Answer)

object Main extends App {
  val in = scala.io.Source.stdin.getLines.toSeq
  val ls = in.map(_.split(' ').map(_.toLong))
  val A = ls(0)(0)
  val B = ls(0)(1)
  val C = ls(0)(2)
  
  //A + B + 2sqrt(AB) < C
  val left = Math.sqrt(A.toDouble * B) * 2
  val right = C - A - B
  //println(left)
  //println(right)
  val ret = left < right 
  println(if(ret) "Yes" else "No")
}