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.



Sample input:
2 3 9


Sample output:
No

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
c -= a + b
print('YNeos'[c <= 0 or 4 * a * b >= c * c :: 2])

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(1000000000)
import math
from fractions import gcd
def lcm(a, b): return a * b // gcd(a, b)
from itertools import count, permutations
from functools import lru_cache
from collections import deque, defaultdict
from pprint import pprint
ii = lambda: int(input())
mis = lambda: map(int, input().split())
lmis = lambda: list(mis())
INF = float('inf')
N1097 = 10**9 + 7

def meg(f, ok, ng):
    while abs(ok-ng)>1:
        mid = (ok+ng)//2
        if f(mid):
            ok=mid
        else:
            ng=mid
    return ok

def get_inv(n, modp):
    return pow(n, modp-2, modp)

def factorials_list(n, modp):    # 10**6
    fs = [1]
    for i in range(1, n+1):
        fs.append(fs[-1] * i % modp)
    return fs

def invs_list(n, fs, modp):     # 10**6
    invs = [get_inv(fs[-1], modp)]
    for i in range(n, 1-1, -1):
        invs.append(invs[-1] * i % modp)
    invs.reverse()
    return invs

def comb(n, k, modp):
    num = 1
    for i in range(n, n-k, -1):
        num = num * i % modp
    den = 1
    for i in range(2, k+1):
        den = den * i % modp
    return num * get_inv(den, modp) % modp

def comb_from_list(n, k, modp, fs, invs):   
    return fs[n] * invs[n-k] * invs[k] % modp

#

class UnionFindEx:
    def __init__(self, size):
        #正なら根の番号、負ならグループサイズ
        self.roots = [-1] * size
    def getRootID(self, i):
        r = self.roots[i]
        if r < 0:   #負なら根
            return i
        else:
            r = self.getRootID(r)
            self.roots[i] = r
            return r
    def getGroupSize(self, i):
        return -self.roots[self.getRootID(i)]
    def connect(self, i, j):
        r1, r2 = self.getRootID(i), self.getRootID(j)
        if r1 == r2:
            return False
        if self.getGroupSize(r1) < self.getGroupSize(r2):
            r1, r2 = r2, r1
        self.roots[r1] += self.roots[r2]    #サイズ更新
        self.roots[r2] = r1
        return True

Yes = 'Yes'
No = 'No'

def main():
    a,b,c=mis()
    if 2 < c-b-a:
        print(Yes if 4*a*b < (c-b-a)**2 else No)
    else:
        print(No)




main()

Submission status: Accepted

Solution code:
i = list(map(int, input().split()))
if i[2]-i[1]-i[0]<0:
    print('No')
elif 4*i[0]*i[1]<(i[2]-i[1]-i[0])**2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import math
a, b, c = map(int, input().split())

if c <= a or c <= b:
    print("No")
else:
    print("Yes" if 4 * a * b < (c - a - b)**2 else "No")

Submission status: Accepted

Solution code:
import math
a,b,c = map(int,input().split())

if c-a-b<0:
    print('No')
elif 4*a*b<(c-a-b)**2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

a, b, c = map(int, input().split())

d = c - b - a
if d <= 0:
    print('No')
else:
    print('Yes') if d ** 2 > a * b * 4 else print('No')

Submission status: Accepted

Solution code:
import math
from decimal import *

A, B, C = map(int, input().split())

if Decimal(A).sqrt() + Decimal(B).sqrt() < Decimal(C).sqrt():
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
def inpl(): return list(map(int, input().split()))
a, b, c = inpl()

if (c - a- b <= 0):
    print("No")
else:
    if (4*a*b) < (c-a-b)**2:
        print("Yes")
    else:
        print("No")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if c < a or c < b:
  print('No')
else:
  print('Yes' if (4 * a * b < (c - a - b) ** 2) else 'No')

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
d = c-a-b
if d <= 0:
  print('No')
elif d**2 - 4*a*b > 0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if c - a - b < 0:
    print('No')
else:
    if 4*a*b < (c - a - b) ** 2:
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools
from collections import deque

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

DR = [1, -1, 0, 0]
DC = [0, 0, 1, -1]

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()

def sqrt(x):
    epsilon = 10**(-15)
    guess = x / 2.0
    while abs(guess**2-x)>=epsilon:
        guess = guess - ((guess**2-x)/(2*guess))
    return guess


def main():
    a, b, c = LI()
    if 4 * a * b < (c - a - b) ** 2 and c - a - b >= 0:
        print('Yes')
    else:
        print('No')

main()

Submission status: Accepted

Solution code:
import numpy as np
from decimal import *
from math import sqrt
a, b, c = list(map(int, input().split()))


getcontext().prec = 20    # デフォルト28桁のところを20桁にする

_a = Decimal(a).sqrt()
_b = Decimal(b).sqrt()
_c = Decimal(c).sqrt()

if _a+ _b < _c:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a, b, c =map(int,input().split())

if ((c-a-b)>0) and (c-a-b)**2-4*a*b>0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
import numpy as np
arr = np.array(list(map(int, input().split())), dtype='float128')
s = np.sqrt(arr, dtype='float128')
if arr[0] + arr[1] + 2 * np.sqrt(arr[0] * arr[1], dtype='float128') < arr[2]:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import math
from decimal import Decimal

a, b, c = map(int, input().split())

# if math.sqrt(a) + math.sqrt(b) < math.sqrt(c):
#     print('Yes')
# else:
#     print('No')

if Decimal(a).sqrt() + Decimal(b).sqrt() < Decimal(c).sqrt():
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a, b, c = [int(i) for i in input().split()]

if c <= a + b:
    print("No")
elif 4*a*b < (c - a - b)*(c - a - b):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
A, B, C = map(int, raw_input().split())

#sqrt(A) + sqrt(B) < sqrt(C)
#A + B + 2.sqrt(AB) < C
# 4.AB < (C - A - B) ^ 2

if C - A - B < 0: print "No"
else: print "Yes" if 4 * A * B < (C - A - B) ** 2 else "No"

Submission status: Accepted

Solution code:
import math

s = input().split()

a = int(s[0])
b = int(s[1])
c = int(s[2])

if a + b >= c :
  print('No')
else:
  if 4*a*b < ( c - a - b ) ** 2 :
    print('Yes')
  else:
    print('No')

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())


# if sqrt(a) + sqrt(b) < sqrt(c):
#     print('Yes')
# else:
#     print('No')

if c - a - b <= 0:
    print('No')
elif 4 * a * b < (c - a - b) ** 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if c-a-b<0:
  print("No")
elif (c-a-b)**2>4*a*b:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())

if c-a-b<=0:
  print('No')
else:
  if (c-a-b)**2>4*a*b:
    print('Yes')
  else:
    print('No')

Submission status: Accepted

Solution code:
n = list(map(int,input().split()))
if n[0]*-1+n[1]*-1+n[2]>0:
    if (n[0]*-1+n[1]*-1+n[2])**2 > 4*n[0]*n[1]:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))
if l[2]-l[0]-l[1] <= 2:
    print('No')
elif (l[2]-l[0]-l[1])**2 > l[1]*l[0]*4:
    print("Yes")
else:
    print('No')

Submission status: Accepted

Solution code:
import math
import sys
from decimal import *

a, b, c= list(map(int, input().split()))

#left = 4 * a * b;
#right = (c - a - b) * (c - a - b)

getcontext().prec = 500

da = Decimal(a)
db = Decimal(b)
dc = Decimal(c)

left = da.sqrt() + db.sqrt()
right = dc.sqrt()

if left < right:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
c -= a + b
ok = True
if c * c <= 4 * a * b:
	ok = False
if c <= 0:
	ok = False
if ok:
	print("Yes\n")
else:
	print("No\n")

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
if 2*(a+b) <= c and a != b:
  print("Yes")
elif a**0.5+b**0.5 < c**0.5:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
from math import sqrt

def check(a, b, c):
    n = c - a - b
    if n <= 0:
        return False
    else:
        return 4 * a * b < n**2


if check(a, b, c):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import math


class Solution:
    def solve(self, a: int, b: int, c: int) -> str:

        epsilon = 1e-6

        if c - a - b < 0:
            return 'No'
        elif 4 * a * b < (c - a - b) ** 2:
            return 'Yes'

        else:
            return 'No'


if __name__ == '__main__':

    # standard input
    a, b, c = map(int, input().split())

    # solve
    solution = Solution()
    print(solution.solve(a, b, c))

Submission status: Accepted

Solution code:
from decimal import *
getcontext().prec = 7000
#import numpy as np

a, b, c = map(float, input().split())

##print(a**0.5, b**0.5, c**0.5)
if Decimal(a).sqrt()+ Decimal(b).sqrt() < Decimal(c).sqrt():
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a,b,c=[int(x) for x in input().split()]
l = 4*a*b
r = c-(a+b)
R = r*r
if r<0:
  print('No')
elif l < R:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if ((c-a-b)**2-4*a*b>0) and (c>a+b):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
def main():
    a, b, c = (int(i) for i in input().split())
    if a+b > c:
        return print("No")
    print("Yes" if 4*a*b < (a+b-c)**2 else "No")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a + b > c:
    print('No')
elif 4 * a * b < (c - (a + b)) ** 2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import math
abc=list(map(int, input().split())) 
a=abc[0]
b=abc[1]
c=abc[2]
answer1=c-a-b
answer2=answer1**2-4*a*b
if(answer1<0):
    print('No')
else:
    if(answer2>0):
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
import numpy
from decimal import *

a,b,c = map(Decimal,input().split())
  
ab = a+(2*numpy.sqrt(a*b))+b
 
if ab < c:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
from decimal import *
a,b,c = map(int,input().split())
getcontext().prec = 50
if Decimal(a)**Decimal(0.5) + Decimal(b)**Decimal(0.5) < Decimal(c)**Decimal(0.5):
    ans = "Yes"
else:
    ans = "No"
print(ans)

Submission status: Accepted

Solution code:
a,b,c = list(map(int , input().split()))
x = c - a - b
X = x ** 2
Y = a * b * 4
Z = X - Y
if Z > 0 and x > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import decimal
import math

abc = input().split(' ')
a = int(abc[0])
b = int(abc[1])
c = int(abc[2])

if decimal.Decimal(a).sqrt() + decimal.Decimal(b).sqrt() < decimal.Decimal(c).sqrt():
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:

a, b, c = map(int, input().split())
import math

if (c - a - b) **2 <= 4 * a * b  or c - a - b <= 0:
  print("No")
else:
  print("Yes")

Submission status: Accepted

Solution code:
import math
a, b, c = map(int, input().split())
if 4 * a * b < (c - a - b) ** 2 and math.ceil(2 * math.sqrt(a * b)) <= (c - a - b):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

if c-a-b > 0:
    if 4*a*b < (c-a-b)**2:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
l=4*a*b
r=(c-a-b)*(c-a-b)
if c<=a+b:
    print("No")
elif l<r:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
from decimal import *
a,b,c = map(int,input().split())
if  Decimal(a).sqrt() + Decimal(b).sqrt() < Decimal(c).sqrt() :
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
from math import sqrt
from decimal import Decimal
# def sqrt2(n):
#     def f(prev):
#         while True:
#             m = (prev + n / prev) / 2
#             if m >= prev:
#                 return prev
#             prev = m
    
#     return f(math.sqrt(n) * (1 + 1e-10))
a,b,c = map(int, input().split())

# ra = math.sqrt(a)
# rb = math.sqrt(b)
# rc = math.sqrt(c)
ra = Decimal(a).sqrt()
rb = Decimal(b).sqrt()
rc = Decimal(c).sqrt()

if rc > ra + rb:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# C
a,b,c = map(int,input().split())
ans = 'No'
num = c - a - b
if (num > 0):
    num1 = 2 * 2 *  a * b
    num2 = num * num
    if (num1 < num2):
        ans = 'Yes'
print(ans)

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())

# if 2*(a+b)<c:
#     print("Yes")
#     exit()
if c<=a+b:
    print("No")
    exit()

if a**2+b**2+c**2<(a-b)**2+(b-c)**2+(c-a)**2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import decimal
a,b,c=map(int,input().split())
a=decimal.Decimal(a)
b=decimal.Decimal(b)
c=decimal.Decimal(c)


if c-a-b>=0:
    if (c-a-b)**2>4*a*b:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
from math import ceil, floor, sqrt
from collections import deque, Counter, defaultdict
from fractions import gcd
from decimal import Decimal
input = lambda: sys.stdin.readline().rstrip()

def eprint(s):
    sys.stderr.write('DEBUG: {}'.format(s))
    return

def main():
    a,b,c = map(int, input().split())

    if Decimal(a).sqrt() + Decimal(b).sqrt() < Decimal(c).sqrt():
        print('Yes')
    else:
        print('No')    
    return

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math 
from decimal import *
getcontext().prec = 500
a, b,c = map(int, input().split())
if((Decimal(a).sqrt()+Decimal(b).sqrt())< Decimal(c).sqrt()):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
from math import sqrt
a, b, c = map(int, input().split())
if c-a-b <= 0:
  print("No")
elif 4*a*b < (c-a-b)**2:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
import math

num = list(map(int,input().split()))
left = 4*num[0]*num[1]
right = (num[2]-num[1]-num[0])**2
judge = num[2] - num[0] - num[1]
sign = 1
if judge <= 0:
  sign = 0

if (left < right) and sign == 1:
  ans = 'Yes'
else:
  ans = 'No'
  
print(ans)

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if 0>=c-a-b:
  print("No")
  exit()
if 4*a*b<(c-a-b)**2:
  print("Yes")
else:print("No")

Submission status: Accepted

Solution code:

import glob
import math


# 問題ごとのディレクトリのトップからの相対パス
REL_PATH = 'ABC\\159\\C'

# テスト用ファイル置き場のトップ
TOP_PATH = 'C:\\AtCoder'

class Common:

    problem = []
    index = 0

    def __init__(self, rel_path):
        self.rel_path = rel_path

    def initialize(self, path):
        file = open(path)
        self.problem = file.readlines()
        self.index = 0
        return

    def input_data(self):
        try:
            IS_TEST
            self.index += 1
            return self.problem[self.index-1]

        except NameError:
            return input()

    def resolve(self):
        pass

    def exec_resolve(self):
        try:
            IS_TEST
            for path in glob.glob(TOP_PATH + '\\' + self.rel_path + '/*.txt'):
                print("Test: " + path)
                self.initialize(path)
                self.resolve()
                print("\n\n")
        except NameError:
            self.resolve()


class Solver(Common):

    def resolve(self):

        q = [int(i) for i in self.input_data().split()]

        a = q[0]
        b = q[1]
        c = q[2]

        if 4 * a * b < (c - a - b)**2 and c-a-b > 0:
            print("Yes")
        else:
            print("No")

solver = Solver(REL_PATH)
solver.exec_resolve()

Submission status: Accepted

Solution code:
from decimal import Decimal
a,b,c = list(map(int,input().split()))

if Decimal(a).sqrt() + Decimal(b).sqrt() < Decimal(c).sqrt():
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
from math import sqrt

def I(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LMI(): return list(map(int, sys.stdin.readline().split()))
MOD = 10 ** 9 + 7


a, b, c = MI()
if c - b - a <= 0:
    print('No')
    exit(0)
r = (c - b - a) ** 2
l = 4 * a * b
if l < r:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
from decimal import *
a,b,c = map(int,input().split())
if Decimal(str(a)).sqrt() + Decimal(str(b)).sqrt() < Decimal(str(c)).sqrt():
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
from decimal import Decimal

a, b, c = [Decimal(int(i)) for i in input().split()]
l = a.sqrt() + b.sqrt()
r = c.sqrt()

print("Yes" if l < r else "No")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
k=c-a-b
d=4*a*b
if k<=0:
    print('No')
    exit()
if (k**2)-d>0.5:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import math
a, b, c = map(int, input().split())
ans = True
if c-a-b <= 0:
  print("No")
else:
  if (c-a-b)**2 > 4*a*b:
    print("Yes")
  else:
    print("No")

Submission status: Accepted

Solution code:
a, b, c = list(map(int, input().split()))

if c-a-b > 0:
    if 4*a*b < (c-a-b)**2:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:
from math import ceil,floor,sqrt
from collections import deque,Counter
from decimal import Decimal
a,b,c=[int(i) for i in input().split()]
print("Yes" if Decimal(a).sqrt()+Decimal(b).sqrt()<Decimal(c).sqrt() else "No")

Submission status: Accepted

Solution code:
from decimal import *

a,b,c=map(int,input().split())
a,b,c=Decimal(a),Decimal(b),Decimal(c)
if (max(0,c-(a+b)))**2>4*a*b:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
a, b, c = [int(x) for x in input().split()]

if c - a - b <= 0:
    print("No")
elif 4 * a * b < (c - a - b)**2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys,math
sys.setrecursionlimit(10**9)
from collections import defaultdict
 
IA = lambda: map(int,input().split())
IAS= lambda: map(str,input().split())
 
a,b,c=IA()
temp=c-a-b
if temp<0:
  print("No")
else:
  if temp*temp>4*a*b:
    print("Yes")
  else:
    print("No")

Submission status: Accepted

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip() 

def resolve():
    a, b, c = map(int, input().split())
    if c-a-b > 0:
        if 4*a*b < (c-a-b)**2:
            print('Yes')
        else:
            print('No')
    else:
        print('No')


if __name__ == '__main__':
    resolve()

Submission status: Accepted

Solution code:
# n = int(input())
# words = ['a', 'b', 'c', 'd', 'e', 'f','g','h', 'i', 'j']
#
# for i in range(1,n + 1):
#     for j in range():
#
a, b, c = map(int, input().split())
if a + b > c:
    print("No")
    exit()
if 0 < a ** 2 + b ** 2 + c ** 2 - 2 * b * c - 2 * a * c - 2 * a * b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:

import sys
from io import StringIO
import unittest
#import math
from decimal import *

def yn(b):
    print("Yes" if b==1 else "No")
    return

def resolve():
    readline=sys.stdin.readline

    a,b,c=list(map(int, readline().strip().split()))

    getcontext().prec = 50
    #m = Decimal(n).sqrt()
    #r_ab=math.sqrt(a)+math.sqrt(b)
    #r_c=math.sqrt(c)
    r_ab=Decimal(a).sqrt()+Decimal(b).sqrt()
    r_c=Decimal(c).sqrt()

    if r_ab < r_c:
        print("Yes")
    else:
        print("No")

    #arr=list(map(int, readline().strip().split()))
    #n=int(readline().strip())

    return

if 'doTest' not in globals():
    resolve()
    sys.exit()

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
print('Yes' if 4*a*b < (c - a - b) ** 2 and c-a-b > 0else 'No')

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

if c - (a + b) <= 0:
  print('No')
else:
  if 4*a*b < (c - (a+b))**2:
    print('Yes')
  else:
    print('No')

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(a: int, b: int, c: int):
    k = int(c - a - b)
    if k <= 0:
        print(NO)
    elif 4 * (a * b) < k*k:
        print(YES)
    else:
        print(NO)
    return


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    a = int(next(tokens))  # type: int
    b = int(next(tokens))  # type: int
    c = int(next(tokens))  # type: int
    solve(a, b, c)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys
import math

a, b, c = map(int, sys.stdin.readline().split())

# if math.sqrt(a) + math.sqrt(b) < math.sqrt(c):
if c - b - a > 0 and  a**2 + b**2 + c**2 - 2 * (a*b + b*c + c*a) > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import numpy as np

a, b, c = map(int, input().split())

s = c - a - b
if s <= 0:
    print('No')
else:
    if s ** 2 > 4 * a * b:
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
from math import ceil

n,m,q = map(int, input().split())
v = 4*n*m < (q-n-m)**2 and (q-n-m) > 0
print('Yes' if v else 'No')

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(1 << 25)
read = sys.stdin.readline


def read_ints():
    return list(map(int, read().split()))


def read_a_int():
    return int(read())


def read_tuple(H):
    '''
    H is number of rows
    '''
    ret = []
    for _ in range(H):
        ret.append(tuple(map(int, read().split())))
    return ret


def read_col(H, n_cols):
    '''
    H is number of rows
    n_cols is number of cols
    A列、B列が与えられるようなとき
    '''
    ret = [[] for _ in range(n_cols)]
    for _ in range(H):
        tmp = list(map(int, read().split()))
        for col in range(n_cols):
            ret[col].append(tmp[col])
    return ret


def read_matrix(H):
    '''
    H is number of rows
    '''
    ret = []
    for _ in range(H):
        ret.append(list(map(int, read().split())))
    return ret
    # return [list(map(int, read().split())) for _ in range(H)] # 内包表記はpypyでは遅いため


def read_map(H):
    '''
    H is number of rows
    文字列で与えられた盤面を読み取る用
    '''
    return [read()[:-1] for _ in range(H)]


def read_map_as_int(H):
    '''
    #→1,.→0として読み込む
    '''
    ret = []
    for _ in range(H):
        ret.append([1 if s == '#' else 0 for s in read()[:-1]])
        # 内包表記はpypyでは若干遅いことに注意
        # #numpy使うだろうからこれを残しておくけど
    return ret


# default import
from collections import defaultdict, Counter, deque
from operator import itemgetter
from itertools import product, permutations, combinations
from bisect import bisect_left, bisect_right  # , insort_left, insort_right
from fractions import gcd


def lcm(a, b):
    # 最小公約数
    g = gcd(a, b)
    return a * b // g


a, b, c = read_ints()
from math import sqrt
# if sqrt(a) + sqrt(b) < sqrt(c):
#     print('Yes')
# else:
#     print('No')


# if (a) + (b) - c < -2 * sqrt(a * b):
#     print('Yes')
# else:
#     print('No')

if a + b < c and a ** 2 + b ** 2 + c ** 2 + 2 * a * b - 2 * b * c - 2 * a * c > 4 * a * b:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a,b,c=list(map(int,input().split(' ')))
k=(c-a-b)
if k<0:
    print('No')
    exit()
if (c**2-2*c*(a+b)+(a-b)**2)>0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import math
a, b, c = map(int, input().split())
ans = (a + b - c)**2 > 4 * a * b

if a + b > c:
    print("No")
elif ans:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:

a, b, c = map(int, input().split())
if 4 * a * b < (c - a - b) ** 2 and c > a + b:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a,b,c = map(int, input().split())
if a + b > c:
    print('No')
elif a*a + b*b + c*c > 2*a*b + 2*a*c + 2*b*c:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import math

a,b,c = map(int,input().split())

temp = c**2 + a**2 + b**2 - 2*(a*b + a*c + b*c)

if (c-a-b) < 0:
    print('No')
elif temp > 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())

if c-a-b > 0:
    if int((c-a-b) ** 2) - int(4*a*b) > 0:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())
if a+b > c:
    print("No")
else:
    d = a + b - c
    if d * d <= 4 * a * b:
        print("No")
    else:
        print("Yes")

Submission status: Accepted

Solution code:
import sys
a, b, c = map(int, input().split())
if c == a + b:
    print('No')
    sys.exit()
if c > a + b:
    if a ** 2 + b ** 2 + c ** 2 - 2 * b * c - 2 * a * b - 2 * a * c > 0:
        print('Yes')
    else:
        print('No')
if c < a + b:
    print('No')

Submission status: Accepted

Solution code:
A,B,C=map(int,input().split())

if C<=A+B:
  print("No")
else:
  if 0<A**2+B**2+C**2-2*(A*B+A*C+B*C):
    print("Yes")
  else:
    print("No")

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

if c-a-b > 0:
    if 4*a*b < (c-a-b)*(c-a-b):
        print("Yes")
    else:
        print("No")
else:
    print("No")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys

YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(a: int, b: int, c: int):
    if c - a - b < 0:
        print(NO)
        exit()
    print(YES if 4 * a * b < (c - a - b) ** 2 else NO)


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    a = int(next(tokens))  # type: int
    b = int(next(tokens))  # type: int
    c = int(next(tokens))  # type: int
    solve(a, b, c)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

if c < (a+b):
  print("No")
elif c**2 - 2*(a+b)*c + (a-b)**2 > 0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
a,b,c=map(int, input().split())
if c - a - b < 0:
    print("No")
else:
    if a**2 + b**2 + c**2 - 2*a*b - 2*b*c - 2*c*a > 0:
        print("Yes")
    else:
        print("No")

Submission status: Accepted

Solution code:
import math
from decimal import *
getcontext().prec = 20

(a, b, c) = list(map(int, input().split()))

if Decimal(a).sqrt() + Decimal(b).sqrt() < Decimal(c).sqrt():
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
from decimal import *

a,b,c = map(int,input().split())

if Decimal(a).sqrt() + Decimal(b).sqrt() < Decimal(c).sqrt():
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
import math
a,b,c = map(int, input().split())
if c-a-b <= 0:
    print("No")
elif a*a + b*b + c*c -2*a*b -2*b*c -2*c*a > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
x,y,z=list(map(int, input().split()))

if z-x-y<0:
	print('No')
elif (x*y*4)<((z-x-y)**2):
	print('Yes')
else:
	print('No')

Submission status: Accepted

Solution code:
a,b,c = input().split()
a = int(a)
b = int(b)
c = int(c)

if 4*a*b < (c - a - b)*(c-a-b) and a + b< c:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
def solve():
    a, b, c = list(map(int, input().split()))

    if a + b >= c:
        print("No")
        return

    lhs = 4 * a * b
    rhs = (c - a - b) ** 2

    if lhs < rhs:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
from decimal import *
num1, num2, num3 = map(int, input().split())
num1 = Decimal(num1)
num2 = Decimal(num2)
num3 = Decimal(num3)
if (num1.sqrt() + num2.sqrt() < num3.sqrt()):
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
from decimal import *
import math
getcontext().prec = 40
a,b,c = map(int, input().split())
if a+b+2*Decimal(a).sqrt()*Decimal(b).sqrt() < c:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
if ((c-a-b)**2)>4*a*b and c-a-b>0:
  print("Yes")
else:
  print("No")

Submission status: Accepted

Solution code:
import math

inputs = list(map(int, (input().split())))


a = inputs[0]
b = inputs[1]
c = inputs[2]

# aa = math.sqrt(a)
# bb = math.sqrt(b)
# cc = math.sqrt(c)

if a + b >= c:
    print("No")
    exit(0)

if ((c - a - b)**2 > 4*a*b):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
from decimal import Decimal

abc = list(map(int, input().split()))
a = Decimal(abc[0])
b = Decimal(abc[1])
c = Decimal(abc[2])

if a.sqrt() + b.sqrt() < c.sqrt():
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
try:
	while True:
		s = input().split(" ")
		if len(s)==3:
			a, b, c = map(int, s)
			cab = c-a-b
			ans = "No"
			if 0<cab:
				if a*b*4<cab**2:
					ans = "Yes"
			print(ans)
#			print(a**0.5+b**0.5<c**0.5)
except:
	pass

Submission status: Accepted

Solution code:
''' بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ '''
#codeforces
gi = lambda : list(map(int,input().split()))
n, m, p = gi()
if p - n - m < 0:
	print("No")
	exit();
if 4 * (n * m) < (p - n - m) ** 2:
	print("Yes")
else:
	print("No")

Submission status: Accepted

Solution code:
import decimal
a,b,c=map(int,input().split())
print(["No","Yes"][decimal.Decimal(a).sqrt()+decimal.Decimal(b).sqrt()<decimal.Decimal(c).sqrt()])

Submission status: Accepted

Solution code:
a, b, c = map(int, input().split())

if c - a - b >= 0 and (c - a - b)**2 > 4 * a * b:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
from decimal import *

a, b, c = map(int, input().split())

a = Decimal(a)
b = Decimal(b)
c = Decimal(c)

if a.sqrt() + b.sqrt() < c.sqrt():
    print("Yes")
else:
    print("No")