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 Haskell (GHC 7.10.3) (judge verdict: Wrong Answer)

import Control.Monad
import Data.Maybe
import qualified Data.ByteString.Char8 as BS

main = panaC
panaC = do
    [a,b,c] <- getIntList
    putStrLn $ solveC a b c

readInt = fst . fromJust . BS.readInteger
readIntList = map readInt . BS.words
getIntList = readIntList <$> BS.getLine

solveC :: Integer -> Integer -> Integer -> String
solveC a b c
    | c - a - b > 0 = if result > 0 then "Yes" else "No"
    | otherwise = if result' > 0 then "Yes" else "No"
    where result = (c - a - b)^2 - 4 * a * b
          result' = (c - a - b)^2 - 4 * a * b