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:
import math

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


if c-a-b > 0 and 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 a + b < c and 4 * a * b < (c - a - b) ** 2:
	print("Yes")
else:
	print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

left = 4*A*B
right = (C-(A+B)) * (C-(A+B))

plus = True if (C-(A+B)) >= 0 else False

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

Submission status: Accepted

Solution code:
import decimal
a,b,c=(decimal.Decimal(x) for x in input().split())
judge = a.sqrt() + b.sqrt() - c.sqrt()
print("Yes" if judge < 0 else "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>0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
a,b,c = map(int,input().split())
if c-b-a < 0:
    print('No')
    exit()

if 4*a*b < (c-b-a)**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')
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 4 * a * b < (c - a - b) ** 2 and c - a - b >= 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import sqrt

n, m, l = map(int, input().split())
left = n+m-l
if left < 0 and left**2  > 4*(n*m):
    print('Yes')

else:
    print('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 a**Decimal(0.5) + b**Decimal(0.5) < c**Decimal(0.5):
  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>0:
	print('Yes')
else:
	print('No')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

a,b,c = map(int,input().split())
x = math.sqrt(a)
y = math.sqrt(b)
z = math.sqrt(c)

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

Submission status: Accepted

Solution code:
import sys
stdin = sys.stdin
mod = 10**9 + 7

def ns(): return stdin.readline().rstrip()
def ni(): return int(ns())
def na(): return list(map(int, stdin.readline().split()))


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

def LI():
	return [ int(s) for s in input().split() ]
  
a,b,c = LI()
check = c-b-a 

print('Yes') if check > 0 and 4*a*b < check**2 else print('No')

Submission status: Accepted

Solution code:
from math import sqrt
from decimal import Decimal

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

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

Submission status: Accepted

Solution code:
from math import sqrt
from decimal import Decimal

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
import numpy as np 

EPS = np.float128(1.0e-15)

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def main():
    a, b, c = map(int, input().split())
    tmp = c - a - b
    if tmp <= 0:
        print("No")
    else:
        if 4 * a * b < tmp * tmp:
            print("Yes")
        else:
            print("No")

if __name__ == "__main__":
    main()

Submission status: Accepted

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

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**10
mod = 10**9+7
mod2 = 998244353
dd = [(-1,0),(0,1),(1,0),(0,-1)]
ddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]

def LI(): return list(map(int, sys.stdin.readline().split()))
def LLI(): return [list(map(int, l.split())) for l in sys.stdin.readlines()]
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 pf(s): return print(s, flush=True)
def pe(s): return print(str(s), file=sys.stderr)
def JA(a, sep): return sep.join(map(str, a))
def JAA(a, s, t): return s.join(t.join(map(str, b)) for b in a)


def main():
    a = LI()
    t = []
    getcontext().prec = 128
    for c in a:
        t.append(Decimal(c) ** Decimal('0.5'))
    if t[0]+t[1] < t[2]:
        return "Yes"

    return "No"


print(main())

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())
tmp=c-a-b
if tmp<0:
    print("No")
    exit()
if 4*a*b<tmp**2:
  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())
if (c-a-b)**2-4*a*b<=0 or c-a-b<0:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
import math
a,b,c = (int(i) for i in input().split())
if c-a-b <= 2:
  print("No")
  exit()
else:
  x = (c-a-b)**2
  y = 4*a*b
  if x > y:
    print("Yes")
  else:
    print("No")

Submission status: Accepted

Solution code:
import math
 
a,b,c = map(int,input().split())
 
if( a*a + b*b + c*c > 2*(a*b + a*c + b*c) and c-(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 and 4*a*b < (c-a-b)**2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
from decimal import Decimal,getcontext

getcontext().prec=100
a,b,c=map(int,input().split())
eps=Decimal(10)**(-14)
print(("No","Yes")[Decimal(a).sqrt()+Decimal(b).sqrt()+eps<Decimal(c).sqrt()])

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

A, B, C = lr()
if A + B - C >= 0:
    print('No'); exit()
else:
    flag = (-A - B + C) ** 2 > 4 * A * B
print('Yes' if flag else 'No')

Submission status: Accepted

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

def intSqrt(n):
    M = int(n**0.5)

    while (M + 1)**2 <= n:
        M += 1

    for _ in range(300):
        n *= 100
        M *= 10
        for add in range(0, 10)[:: -1]:
            if (M + add)**2 <= n:
                M += add
                break

    return M

A, B, C = intSqrt(A), intSqrt(B), intSqrt(C)

if abs(A + B - C) < 10 or A + B >= C:
    print('No')
else:
    print('Yes')

Submission status: Accepted

Solution code:
import decimal
a, b, c = map(int, input().split())
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())
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())
d = (c-a-b)**2 - 4*a*b
e = c-a-b
if d > 0 and e > 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

if 4 * a * b < pow(c - a - b, 2) and c - 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 and 4*a*b<(c-a-b)**2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import math
a,b,c=list(map(int,input().split()))
if 4*a*b <(c-a-b)**2 and c-a-b>0:
  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) >0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
import math

a, b, c = list(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:
def main():
    a, b, c = map(int, input().split())
    if c - a - b < 0:
        print('No')
        return

    res = 'Yes' if 4 * a * b < (c - a - b) * (c - a - b) else 'No'
    print(res)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

import sys
sys.setrecursionlimit(300000)

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

def solve(a: int, b: int, c: int):
    tmp = c - a - b
    if tmp > 0 and 4 * a * b < tmp * tmp:
        ret = YES
    else:
        ret = NO
    print(ret)
    return

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 math

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

ab = a*b*4
cab = c - a - b
cabdouble = cab ** 2

if ab < cabdouble and cab > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=map(int,input().split())
# /a+/b</c
# a+2/a/b+b<c
# 4ab<(c-a-b)**2

print(("No","Yes")[4*a*b<(c-a-b)**2 and c-a-b>0])
# print(a**0.5,b**0.5,a**0.5+b**0.5,c**0.5)
# print(("No","Yes")[a**0.5+b**0.5<c**0.5])

Submission status: Accepted

Solution code:
from math import sqrt
mod=10**9+7
a,b,c=map(int, input().split())


#if sqrt(a)+sqrt(b)<sqrt(c):
if 4*a*b<(c-a-b)**2 and c-a-b>0:

  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 > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import math


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

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


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:
import math
a, b, c = map(int, input().split())
sub1=c-a-b
sub2=sub1**2
if sub1>0 and 4*a*b<sub2:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

d = c - a - b

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

Submission status: Accepted

Solution code:
def solve():
  a, b, c = map(int, raw_input().strip().split())
  d = c - a - b
  if d <= 0: return False
  return 4 * a * b < d * d

print 'Yes' if solve() else '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>0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def A():
    seq = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
    K = int(input())
    print(seq[K-1])

import math
def B():
    H, W = map(int, input().split())
    if H==1 or W==1:
        print(1)
        return
    print(int(math.ceil(H*W/2.0)))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import Decimal
#decimal.Decimalってしなくて済むよ
a,b,c = map(int,input().split())
a = a ** Decimal(0.5)
b = b ** Decimal(0.5)
c = c ** Decimal(0.5)
a_b = a + b
if c > a_b:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin
import sys
import math
import random

a, b, c = [int(x) for x in stdin.readline().rstrip().split()]
# a = random.randrange(1000000000)
# b = random.randrange(1000000000)
# c = random.randrange(1000000000)
# print(a, b, c)
# ra = math.sqrt(a)
# rb = math.sqrt(b)
# rc = math.sqrt(c)
# if ra+rb < rc:
#     print("Yes")
# else:
#     print("No")
# d = math.sqrt(b*a)
e=4*a*b
f=(c-a-b)**2
if c-a-b < 0:
    print("No")
    sys.exit(0)

if e<f:
# if d < (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 and 4*a*b < (c-(a+b))**2:
    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 (c-a-b)**2 > 4*a*b:
  print('Yes')
else:
  print('No')

Submission status: Accepted

Solution code:
from decimal import Decimal
#decimal.Decimalってしなくて済むよ
a,b,c = map(int,input().split())
a = a ** Decimal("0.5")
b = b ** Decimal("0.5")
c = c ** Decimal("0.5")
a_b = a + b
if 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:
    print('No')
elif 4*a*b < (c-(a+b))**2:
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
from decimal import Decimal

a,b,c = map(int,input().split())
a = a ** Decimal(0.5)
b = b ** Decimal(0.5)
c = c ** Decimal(0.5)
a_b = a + b
if 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:
    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 4*a*b<(c-a-b)**2:
    if c-a-b<=0:
        print('No')
    else:
        print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
abc = [int(i) for i in input().split(' ')]
a = abc[0]
b = abc[1]
c = abc[2]
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:
def main():
    a, b, c = [int(e) for e in input().split()]

    if a >= c or b >= c:
        print('No')
    elif a**2 + b**2 + c**2 - 2*(a*b + b*c + c*a) > 0:
        print('Yes')
    else:
        print('No')

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# from fractions import gcd
# from datetime import date, timedelta
# from heapq import *
# import heapq
# import math
# from collections import defaultdict, Counter, deque
# from bisect import *
# import itertools
# import fractions
# # import sys
# sys.setrecursionlimit(10 ** 7)
# MOD = 10 ** 9 + 7
# input = sys.stdin.readline


# def lcm(a, b):
#     return a * b / fractions.gcd(a, b)


# def make_divisors(n):
#     divisors = []
#     for i in range(1, int(n**0.5)+1):
#         if n % i == 0:
#             divisors.append(i)
#             if i != n // i:
#                 divisors.append(n//i)

#     # divisors.sort()
#     return divisors


# def factorize(n):
#     fct = []  # prime factor
#     b, e = 2, 0  # base, exponent
#     while b * b <= n:
#         while n % b == 0:
#             n = n // b
#             e = e + 1
#         if e > 0:
#             fct.append((b, e))
#         b, e = b + 1, 0
#     if n > 1:
#         fct.append((n, 1))
#     return fct


# def is_prime(n):
#     if n == 1:
#         return False

#     for k in range(2, int(math.sqrt(n)) + 1):
#         if n % k == 0:
#             return False

#     return True


# def primes(n):
#     is_prime = [True] * (n + 1)
#     is_prime[0] = False
#     is_prime[1] = False
#     for i in range(2, int(n**0.5) + 1):
#         if not is_prime[i]:
#             continue
#         for j in range(i * 2, n + 1, i):
#             is_prime[j] = False
#     return [i for i in range(n + 1) if is_prime[i]]

# def modpow(a, n, mod):
#     res = 1
#     while n > 0:
#         if n & 1:
#             res = res * a % mod
#         a = a * a % mod
#         n >>= 1
#     return res


# def modinv(a, mod):
#     return modpow(a, mod - 2, mod)


# def cnk(a, b):
#     MOD = 10**9+7
#     ret = 1
#     for i in range(b):
#         ret *= (a-i)
#         ret %= MOD
#         ret = ret * modinv(i+1, MOD) % MOD
#     return ret


# class UnionFind:
#     def __init__(self, n):
#         self.sz = [-1 for i in range(n)]

#     # 検索
#     def find(self, x):
#         if self.sz[x] < 0:
#             return x
#         else:
#             self.sz[x] = self.find(self.sz[x])
#             return self.sz[x]

#     # 併合
#     def union(self, x, y):
#         x = self.find(x)
#         y = self.find(y)
#         if x == y:
#             return False
#         if self.sz[x] > self.sz[y]:
#             x, y = y, x
#         self.sz[x] += self.sz[y]
#         self.sz[y] = x

#     # 同じ集合に属するか判定
#     def same(self, x, y):
#         return self.find(x) == self.find(y)

#     # xが含まれている集合のサイズを求める
#     def size(self, x):
#         return -self.sz[self.find(x)]

# class WeightedUnionFind:
#     def __init__(self, n):
#         self.par = [i for i in range(n+1)]
#         self.rank = [0] * (n+1)
#         # 根への距離を管理
#         self.weight = [0] * (n+1)

#     # 検索
#     def find(self, x):
#         if self.par[x] == x:
#             return x
#         else:
#             y = self.find(self.par[x])
#             # 親への重みを追加しながら根まで走査
#             self.weight[x] += self.weight[self.par[x]]
#             self.par[x] = y
#             return y

#     # 併合
#     def union(self, x, y, w):
#         rx = self.find(x)
#         ry = self.find(y)
#         # xの木の高さ < yの木の高さ
#         if self.rank[rx] < self.rank[ry]:
#             self.par[rx] = ry
#             self.weight[rx] = w - self.weight[x] + self.weight[y]
#         # xの木の高さ ≧ yの木の高さ
#         else:
#             self.par[ry] = rx
#             self.weight[ry] = -w - self.weight[y] + self.weight[x]
#             # 木の高さが同じだった場合の処理
#             if self.rank[rx] == self.rank[ry]:
#                 self.rank[rx] += 1

#     # 同じ集合に属するか
#     def same(self, x, y):
#         return self.find(x) == self.find(y)

#     # xからyへのコスト
#     def diff(self, x, y):
#         return self.weight[x] - self.weight[y]


class manacher:

    def __init__(self, l):
        self.n = len(l)
        self.m = 2*self.n+1
        self.d = ['&']*self.m
        self.r = [0]*self.m
        for i in range(self.n):
            self.d[2*i+1] = l[i]
        self.make_r()

    def make_r(self):
        i, j = 0, 0
        while i < self.m:
            while j <= i < self.m-j and self.d[i-j] == self.d[i+j]:
                j += 1
            self.r[i] = j
            k = 1
            while k <= i < self.m-k and k+self.r[i-k] < j:
                self.r[i+k] = self.r[i-k]
                k += 1
            i += k
            j -= k

    def judge(self, start, end):
        center = start+end
        return 2 * end - 1 < center + self.r[center]


def main():
    a, b, c = map(int, input().split())
    if c - a - b < 0:
        print("No")
        exit()
        
    left = 4 * a * b
    right = (c - a - b)** 2
    if left <right:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import Decimal


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:
#!/usr/bin/env python3
import math
import numpy as np
a, b, c = map(int, input().split())
if (c-a-b > 0 and 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:
    if 4 * a * b < (c - a - b) ** 2:
        ans = "Yes"
    else:
        ans = "No"
else:
    ans = "No"


print(ans)

Submission status: Accepted

Solution code:
from sys import stdin
a,b,c = [int(x) for x in stdin.readline().rstrip().split()]
if 4*a*b < (c-a-b)**2 and (c-a-b) > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
from sys import stdin
from decimal import Decimal,getcontext
getcontext().prec = 50
a,b,c = [Decimal(x) for x in stdin.readline().rstrip().split()]
if a.sqrt() + b.sqrt() < c.sqrt():
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

# process
result = False
if A+B < C and (A+B-C)**2 > 4*A*B:
    result = True

# output
print("Yes" if result else "No")

Submission status: Accepted

Solution code:
from decimal import *

(a, b, c) = [Decimal(i) for i in input().split()]

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

Submission status: Accepted

Solution code:
from decimal import Decimal
a,b,c = map(int,input().split())
a = a ** Decimal("0.5")
b = b ** Decimal("0.5")
c = c ** Decimal("0.5")
a_b = Decimal(a) + Decimal(b)
#print(a,b,c,a_b)
if 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 and (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 and (c-a-b)**2 > 4*a*b:
    ans = "Yes"
else:
    ans = "No"
print(ans)

Submission status: Accepted

Solution code:
# coding: utf-8

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

if not c - a - b > 0:
    print('No')
    exit()

d = 4 * a * b
e = (c - a - b) ** 2

if e - d > 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:
a, b, c = map(int, input().split())
if c - a - b < 0:
    print("No")
    exit()
if 4 * a * b < (c - a - b) ** 2:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import decimal
a, b, c = map(int, input().split())
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());print('YNeos'[c<=a+b or 4*a*b>=(c-a-b)**2::2])

Submission status: Accepted

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


d = c - a - b

if d > 0 and d ** 2 > 4 * a * b:
    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 ((c - b - a) * (c - b - a) > 4 * a * b and c - a - b > 0):
    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) > 0:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

if a.sqrt() + b.sqrt() < c.sqrt():
  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 > 0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

if c - a - b > 0 and 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:
  ans = False
else:
  ans = 4 * a * b < (c - a - b) ** 2

print("Yes" if ans else "No")

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-

def solve():
    # 式変形する
    a, b, c = list(map(int, input().split()))

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


if __name__ == "__main__":
    solve()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
def resolve():
    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")

resolve()

Submission status: Accepted

Solution code:
import sys
import math
from decimal import Decimal

def main():
    a, b, c = [int(_) for _ in input().split()]

    a_sq = Decimal(a).sqrt()
    b_sq = Decimal(b).sqrt()
    c_sq = Decimal(c).sqrt()

    if a_sq + b_sq < c_sq:
        print("Yes")
    else:
        print("No")
main()

Submission status: Accepted

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

Submission status: Accepted

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

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


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:
    print("No")
else:
    if (a*(a-b-c)+b*(b-a-c)+c*(c-a-b) > 0):
        print("Yes")    
    else:
        print("No")