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: Wrong Answer)

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

int main()
{
    unsigned long long  a, b, c, diff;
    long double ab;
    cin >> a >> b >> c;

    if (c < a + b) {
        cout << "No" << endl;
        return 0;
    }
    
    diff = c - a - b;
    // ab = sqrt(a) * sqrt(b);
    // // cout << ab << endl;
    // if (diff > 2 * ab) {
    //     cout << "Yes" << endl;
    // } else {
    //     cout << "No" << endl;
    // }

    if (((diff / 2) * (diff / 2)) > (a * b)) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }

    return 0;
}