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 sys
int1 = lambda x: int(x) - 1
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(500000)

a, b, c = map(int, read().split())
if ((c - a - b) > 0) & (4 * a * b < pow(c - a - b, 2)):
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
def main():
    import sys
    # import math
    # import decimal
    input = sys.stdin.readline
    a, b, c = map(int, input().split())

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
a, b, c = [int(i) for i in sys.stdin.readline().split()]
from math import sqrt
import numpy as np
a = np.longlong(a)
b = np.longlong(b)
c = np.longlong(c)
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 <= 2:
    ans = "No"
elif (c - a - b) ** 2 > 4 * a * b:
    ans = "Yes"
else:
    ans = "No"
print(ans)

Submission status: Accepted

Solution code:
def Main(a, b, c):
    x = c-a-b
    if x > 0:
        if x*x > 4*a*b:
            return "Yes"
    return "No"

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math
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:
# -*- coding: utf-8 -*-

from decimal import Decimal

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

     a_sqrt = Decimal(a).sqrt()
     b_sqrt = Decimal(b).sqrt()
     c_sqrt = Decimal(c).sqrt()

     if a_sqrt + b_sqrt < c_sqrt:
          print('Yes')
     else:
          print('No')

if __name__ == "__main__":
    main()

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

square_list = [i**2 for i in range(1, 10**5)]

def integer_squareroot(x):
    imin = 0
    imax = x
    while imin <= imax:
        imid = (imin + imax) // 2
        imid_squared = imid ** 2
        if imid_squared <= x:
            imin = imid + 1
        else:
            imax = imid - 1

    return imin - 1


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")

# for i in range(3):
#     if A[i] in square_list:
#         A[i] = integer_squareroot(A[i])
#     else:
#         A[i] = math.sqrt(A[i])

# if A[0] + A[1] + 1e-11 < A[2]:
#     print("Yes")
# elif A[0] + A[1] < A[2]:
#     print("Yes")
# else:
#     print("No")

Submission status: Accepted

Solution code:
# coding: utf-8
from math import sqrt
a, b, c = map(int, input().split())
mod = 10**9 + 7
# if c**2 - 2*(a+b)*c + (a-b)**2 > 0:
# if a**2 + b**2 + c**2 >= 2 * (a*b + b*c + c*a):
if c-a-b > 0 and 4*a*b < (c-a-b)**2:
# T = sqrt(a*b + b*c + c*a) * 2
# if -T <= a+b+c <= T:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

from decimal import Decimal
sqa=Decimal(a).sqrt()
sqb=Decimal(b).sqrt()
sqc=Decimal(c).sqrt()

if sqa+sqb<sqc:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
a, b, c = map(int,input().split())
  
r = (c - a - b) * (c - a - b)
l = 4 * a * b

if c - a - b < 0 or l >= r:
  print("No")
else: 
  print("Yes")

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:
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools,fractions,pprint,random
sys.setrecursionlimit(10**8)
mod = 10**9+7
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if A+B<C and pow(A-B,2)+pow(C,2)-2*C*(A+B)>0:
#import numpy as np
#if np.sqrt(A)+np.sqrt(B)-np.sqrt(C)<0:
  ans = 'Yes'
else:
  ans = 'No'
  
print(ans)

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:
from math import factorial,sqrt
# from itertools import permutations as permus
# from fractions import gcd
# from collections import deque,Counter

# import numpy as np
# import scipy as scp

# 入力の受け取り
a,b,c = map(int,input().split())

def check():
    if a+b >= c:
        return False
    if 4*a*b < (c-(a+b))**2:
        return True
    else:
        return False

if check():
    ans = "Yes"
else:
    ans = "No"
print(ans)
# print("{:.10f}".format(ans))

Submission status: Accepted

Solution code:
from decimal import Decimal

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

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

Submission status: Accepted

Solution code:
import math
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:
    print("No")
else:
    if 4*a*b < (c-a-b)**2:
        print("Yes")
    else:
        print("No")

Submission status: Accepted

Solution code:
import math
s=list(map(int,input().split()))
a=4*s[0]*s[1]
d=s[2]-s[1]-s[0]
e=d*d
if a<e and 0<d:
  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:
    if c-a-b<0:
        print('No')
    else:
        print('Yes')
else:
    print('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:
from numpy import sqrt
from decimal import *
getcontext().prec = 500
a,b,c = map(int,input().split())
if (Decimal(sqrt(Decimal(a)))+Decimal(sqrt(Decimal(b))))<Decimal(sqrt(Decimal(c))):
    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:
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:
from decimal import *
a,b,c = map(int,input().split())
l = Decimal(a)
m = Decimal(b)
n = Decimal(c)
g = Decimal(l*m)
x = a + b + 2*(g.sqrt())
if x<c:
    print("Yes")
else:
    print("No")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from math import sqrt
from decimal import *

def resolve():
    a, b, c = map(int, input().split())
    if Decimal(a).sqrt() + Decimal(b).sqrt() < Decimal(c).sqrt():
        print('Yes')
    else:
        print('No')
        
resolve()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
from decimal import *
a, b, c = map(int, input().split())

if a+b>c:
    print('No')
    exit()

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from decimal import Decimal

a, b, c = input().split()
a = Decimal(int(a)).sqrt()
b = Decimal(int(b)).sqrt()
c = Decimal(int(c)).sqrt()

d = a + b

if d < c:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
from decimal import Decimal

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

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(1000000)
input = sys.stdin.readline
from bisect import *
from collections import *
from heapq import *
INF = 500000
mod = 10**9+7

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
from decimal import Decimal

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")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import *

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

    ad = Decimal(a).sqrt()
    bd = Decimal(b).sqrt()
    cd = Decimal(c).sqrt()

    if ad + bd < cd:
        is_big = True
    else:
        is_big = False

    print('Yes' if is_big else 'No')

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#
import decimal
import math
from decimal import Decimal


def main():
    a, b, c = map(Decimal, input().split(" "))
    if a.sqrt() + b.sqrt() < c.sqrt():
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
import math
from bisect import bisect_left
from bisect import bisect_right
import collections
import copy
import heapq
from collections import defaultdict
from heapq import heappop, heappush
import itertools
input = sys.stdin.readline

from decimal import *

##### リストの 二分木検索 #####
# bisect_left(lists, 3)
# bisect_right(lists, 3)

##### プライオリティキュー #####
# heapq.heapify(a) #リストaのheap化
# heapq.heappush(a,x) #heap化されたリストaに要素xを追加
# heapq.heappop(a) #heap化されたリストaから最小値を削除＆その最小値を出力

# heapq.heappush(a, -x) #最大値を取り出す時は、pushする時にマイナスにして入れよう
# heapq.heappop(a) * (-1) #取り出す時は、-1を掛けて取り出すこと

##### タプルリストのソート #####
# sorted(ans) #(a, b) -> 1st : aの昇順, 2nd : bの昇順
# sorted(SP, key=lambda x:(x[0],-x[1])) #(a, b) -> 1st : aの昇順, 2nd : bの降順
# sorted(SP, key=lambda x:(-x[0],x[1])) #(a, b) -> 1st : aの降順, 2nd : bの昇順
# sorted(SP, key=lambda x:(-x[0],-x[1])) #(a, b) -> 1st : aの降順, 2nd : bの降順

# sorted(SP, key=lambda x:(x[1])) #(a, b) -> 1st : bの昇順
# sorted(SP, key=lambda x:(-x[1])) #(a, b) -> 1st : bの降順

##### 累乗 #####
# pow(x, y, z) -> x**y % z

def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))

inf = float('inf')
mod = 1000000007

#-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
#-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

def main():
	a,b,c = inputMap()
	getcontext().prec = 20007

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


if __name__ == "__main__":
	main()

Submission status: Accepted

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

x=4*a*b
z=(c-a-b)*(c-a-b)

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

print('Yes' if x<z else 'No')

Submission status: Accepted

Solution code:
import math
a,b,c=map(int,input().split())
aa=math.sqrt(a)
bb=math.sqrt(b)
cc=math.sqrt(c)
ans=a**2+b**2+c**2-2*(a*b+b*c+a*c)
ans2=((aa+bb+cc)*(c-a-b+2*math.sqrt(a*b)))
print("Yes" if 0<ans/ans2 else "No")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
import math
from bisect import bisect_left
from bisect import bisect_right
import collections
import copy
import heapq
from collections import defaultdict
from heapq import heappop, heappush
import itertools
input = sys.stdin.readline

from decimal import *

##### リストの 二分木検索 #####
# bisect_left(lists, 3)
# bisect_right(lists, 3)

##### プライオリティキュー #####
# heapq.heapify(a) #リストaのheap化
# heapq.heappush(a,x) #heap化されたリストaに要素xを追加
# heapq.heappop(a) #heap化されたリストaから最小値を削除＆その最小値を出力

# heapq.heappush(a, -x) #最大値を取り出す時は、pushする時にマイナスにして入れよう
# heapq.heappop(a) * (-1) #取り出す時は、-1を掛けて取り出すこと

##### タプルリストのソート #####
# sorted(ans) #(a, b) -> 1st : aの昇順, 2nd : bの昇順
# sorted(SP, key=lambda x:(x[0],-x[1])) #(a, b) -> 1st : aの昇順, 2nd : bの降順
# sorted(SP, key=lambda x:(-x[0],x[1])) #(a, b) -> 1st : aの降順, 2nd : bの昇順
# sorted(SP, key=lambda x:(-x[0],-x[1])) #(a, b) -> 1st : aの降順, 2nd : bの降順

# sorted(SP, key=lambda x:(x[1])) #(a, b) -> 1st : bの昇順
# sorted(SP, key=lambda x:(-x[1])) #(a, b) -> 1st : bの降順

##### 累乗 #####
# pow(x, y, z) -> x**y % z

def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))

inf = float('inf')
mod = 1000000007

#-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
#-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

def main():
	a,b,c = inputMap()
	getcontext().prec = 20007
	#print(Decimal(a).sqrt())

	#if c == a or c == b:
		#print("No")
		#sys.exit()

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


#-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
#-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
# special thanks :
#  https://nagiss.hateblo.jp/entry/2019/07/01/185421
#-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
def int_sqrt2(n):
    def f(prev):
        while True:
            m = (prev + n / prev) / 2
            if m >= prev:
                return prev
            prev = m

    return f(int(math.sqrt(n) * (1 + 1e-10)))

# nCr mod m
# rがn/2に近いと非常に重くなる
def combination(n, r, mod=10**9+7):
    r = min(r, n-r)
    res = 1
    for i in range(r):
        res = res * (n - i) * modinv(i+1, mod) % mod
    return res

# mを法とするaの乗法的逆元
def modinv(a, mod=10**9+7):
    return pow(a, mod-2, mod)

def egcd(a, b):
    if a == 0:
        return b, 0, 1
    else:
        g, y, x = egcd(b % a, a)
        return g, x - (b // a) * y, y

# nHr mod m
# 問題によって、combination()を切り替えること
def H(n, r, mod=10**9+7):
	# comb = Combination(n+r-1, mod)
	# return comb(n+r-1, r)
    return combination(n+r-1, r, mod)

class Combination:
    """
    O(n)の前計算を1回行うことで，O(1)でnCr mod mを求められる
    n_max = 10**6のとき前処理は約950ms (PyPyなら約340ms, 10**7で約1800ms)
    使用例：
    comb = Combination(1000000)
    print(comb(5, 3))  # 10
    """
    def __init__(self, n_max, mod=10**9+7):
        self.mod = mod
        self.modinv = self.make_modinv_list(n_max)
        self.fac, self.facinv = self.make_factorial_list(n_max)

    def __call__(self, n, r):
        return self.fac[n] * self.facinv[r] % self.mod * self.facinv[n-r] % self.mod

    def make_factorial_list(self, n):
        # 階乗のリストと階乗のmod逆元のリストを返す O(n)
        # self.make_modinv_list()が先に実行されている必要がある
        fac = [1]
        facinv = [1]
        for i in range(1, n+1):
            fac.append(fac[i-1] * i % self.mod)
            facinv.append(facinv[i-1] * self.modinv[i] % self.mod)
        return fac, facinv

    def make_modinv_list(self, n):
        # 0からnまでのmod逆元のリストを返す O(n)
        modinv = [0] * (n+1)
        modinv[1] = 1
        for i in range(2, n+1):
            modinv[i] = self.mod - self.mod//i * modinv[self.mod%i] % self.mod
        return modinv

if __name__ == "__main__":
	main()

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    a, b, c = tuple([int(n) for n in input().split()])
    if c - a - b < 0:
        print('No')
    elif (c - a - b) * (c - a - b) > 4 * a * b:
        print('Yes')
    else:
        print('No')

Submission status: Accepted

Solution code:
[a,b,c]=[int(inp) for inp in input().split()]
#if a*a+b*b+c*c -2*(a*b+b*c+c*a) > 0:
if c - a - b < 0 or a*(a-2*b)+b*(b-2*c)+c*(c-2*a)<=0:
    print("No")
else:
    print("Yes")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 14 21:13:33 2020

@author: H_Hoshigi
"""

#import math

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:
a, b, c = map(int, input().rstrip().split())
from decimal import *
getcontext().prec = 500
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 (a * b * 4 < (c - a - b) * (c - a - b)) and (c - a - b) > 0:
  print('Yes')
else:
  print('No')

Submission status: Accepted

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

if(ans > 0):
    print('Yes')
else:
    print('No')

Submission status: Accepted

Solution code:
from decimal import Decimal

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
## coding: UTF-8
from decimal import *
s = input().split()
t = [int(p) for p in s]

#print(t)
a = t[0]
b = t[1]
c = t[2]

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

Submission status: Accepted

Solution code:
import numpy as np
a,b,c=map(int,input().split())
a=np.array(a)
b=np.array(b)
c=np.array(c)
a=a.astype(np.float128)
b=b.astype(np.float128)
c=c.astype(np.float128)
d=a*b
if c-(a+b+2*(d**0.5))>0:
    print("Yes")
else:
    print("No")

Submission status: Accepted

Solution code:
import sys
import math
import copy
import queue
from decimal import *
input = sys.stdin.readline
def LI(): return [Decimal(x) for x in input().split()]

a,b,c = LI()


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

Submission status: Accepted

Solution code:
from decimal import *
getcontext().prec = 50
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 sqr(x): return x * x
a, b, c = map(int, input().strip().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == "__main__":
    main()

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:
a, b, c = map(int, input().split())
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:
from decimal import *
import sys
a,b,c = map(int,input().split())
getcontext().prec = 500
if a + b >= c:
  print('No')
  sys.exit(0)
if Decimal(a).sqrt() + Decimal(b).sqrt() < Decimal(c).sqrt():
  print('Yes')
  sys.exit(0)
print('No')

Submission status: Accepted

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

if a == b:
  l = 4*a
  r = c
else:
  if a+b < c:
  	l = 4*a*b
  	r = (c -(a+b))**2
  else:
    l = 2 * math.sqrt(a*b)
    r = c - (a + b)
    
if l < r:
  print("Yes")
else:
  print("No")

Submission status: Accepted

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

d=c-a-b

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

Submission status: Accepted

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

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


d=4*a*b
if c-a-b>0:
  e=(c-a-b)*(c-a-b)
  print("Yes" if d<e  else "No")
#print(d,e)
#print(1000063246**0.5)
#print(1000000000**0.5+1)


else:
  print("No")

Submission status: Accepted

Solution code:
import numpy as np
a,b,c = (int(x) for x in input().split())
if(c-a-b < 0):
    print("No")
else:
    if((c-a-b) * (c-a-b) - 4 * a * b > 0):
        print("Yes")
    else:
        print("No")

Submission status: Accepted

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

i = (max(0, c - (a + b)))**2
j = 4 * a * b
if i > j:
    print('Yes')
else:
    print('No')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import bisect
import heapq
import math
import random
import sys
from collections import Counter, defaultdict, deque
from decimal import ROUND_CEILING, ROUND_HALF_UP, Decimal
from functools import lru_cache, reduce
from itertools import combinations, combinations_with_replacement, product, permutations
from operator import add, mul, sub

sys.setrecursionlimit(100000)
input = sys.stdin.readline
INF = 2**62-1

def read_int():
    return int(input())


def read_int_n():
    return list(map(int, input().split()))


def read_float():
    return float(input())


def read_float_n():
    return list(map(float, input().split()))


def read_str():
    return input().strip()


def read_str_n():
    return list(map(str, input().split()))


def error_print(*args):
    print(*args, file=sys.stderr)


def mt(f):
    import time

    def wrap(*args, **kwargs):
        s = time.time()
        ret = f(*args, **kwargs)
        e = time.time()

        error_print(e - s, 'sec')
        return ret

    return wrap


@mt
def slv(A, B, C):

    int(math.sqrt(A))
    if C - (A+B) < 0:
        return 'No'
    if 4 * A * B < (C-A-B) ** 2:
        return 'Yes'
    return 'No'


def main():
    A, B, C = read_int_n()
    print(slv(A, B, C))


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

if a+b-c>0:
    print("No")
else:
    x = (a+b-c)*(a+b-c)
    y = 4*a*b
    if x>y:
        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:
a, b, c = [int(x) for x in input().split(" ")]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
import math
from decimal import *

YES = "Yes" 
NO = "No"  

def solve(a: int, b: int, c: int):
    if a + b + (2 * Decimal(a * b).sqrt()) - c < 0:
        print(YES)
    else:
        print(NO)
    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()