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 Java8 (OpenJDK 1.8.0) (judge verdict: Wrong Answer)

import java.util.*;
public class Main  {
   public static void main(String[] args)  {
      Scanner sc = new Scanner(System.in);
      
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      
      long aa = (long)Math.sqrt(a);
        if(aa*aa> a) {
            aa--;
        }
      long bb = (long)Math.sqrt(a);
        if(bb*bb > b) {
            bb--;
        }
        
      long cc = (long)Math.sqrt(a);
        if(cc*cc > c) {
            cc--;
        }
      
      
      if (aa + bb < cc) {
         System.out.println("Yes");
      } else {
         System.out.println("No");
      }      
   }        
}