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 C++14 (GCC 5.4.1) (judge verdict: Accepted)

#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;

int main(){
    long double a, b, c;

    cin >> a >> b >> c;

    long double delta = c - a - b;

    long double sqrt_ab = (long double)2*sqrt(a*b);
    //long double sqrt_a = (long double)sqrt(a);
    //long double sqrt_b = (long double)sqrt(b);

    if(delta < 0){
        printf("No\n");
    }
    else{
        if(delta > sqrt_ab){
            printf("Yes\n");
        }
        else{
            printf("No\n");
        }
    }

    return 0;
}