qyliang/CodeNanoFix huggingface dataset:
Buggy code:
h,w=map(int,input().split())
if h==1||w==1:
  print(1)
  
else:
  print((h*w+1)//2)

Fixed code:
h,w=map(int,input().split())
if h==1 or w==1:
  print(1)
  
else:
  print((h*w+1)//2)
Buggy code:
s = input().split()
H = int(s[0])
W = int(s[1])
if H == 1 or W == 1:
  print(1)
else:
  tmp = H // 2
  tmp2 = H % 2
  ret = tmp  * W + tmp2 * (W % 2)
  print(ret)  

Fixed code:
s = input().split()
H = int(s[0])
W = int(s[1])
if H == 1 or W == 1:
  print(1)
else:
  ret = (H//2)  * W + (H%2) * ((W+1) // 2)
  print(ret)
Buggy code:
import sys
input=lambda: sys.stdin.readline().rstrip()
h,w=map(int,input().split())
ans=((h+1)//2+h//2)*(w//2)
if w%2==1:
  ans+=(h+1)//2
if h==1 or w==1:
  ans=1
peint(ans)

Fixed code:
import sys
input=lambda: sys.stdin.readline().rstrip()
h,w=map(int,input().split())
ans=((h+1)//2+h//2)*(w//2)
if w%2==1:
  ans+=(h+1)//2
if h==1 or w==1:
  ans=1
print(ans)
Buggy code:
# 4 5
import math
field = [int(i) for i in input().split(" ")]
field_num = field[0] * field[1]
if field_num[0] == 1 or field_num[1] == 1:
    print(1)
else:
    canFillBlock = 0
    canFillBlock += math.ceil(field[1]/2) * math.ceil(field[0]/2)
    canFillBlock += math.floor(field[1]/2) * math.floor(field[0]/2)
    print(canFillBlock)


Fixed code:
# 4 5
import math
field = [int(i) for i in input().split(" ")]
field_num = field[0] * field[1]
if field[0] == 1 or field[1] == 1:
    print(1)
else:
    canFillBlock = 0
    canFillBlock += math.ceil(field[1]/2) * math.ceil(field[0]/2)
    canFillBlock += math.floor(field[1]/2) * math.floor(field[0]/2)
    print(canFillBlock)
Buggy code:
i = input().split()
h = int(i[0])
w = int(i[1])

if (h * w % 2 == 0):
    print(h * w // 2)
else:
    print(h * w + 1)

Fixed code:
i = input().split()
h = int(i[0])
w = int(i[1])

if h == 1 or w == 1:
    print(1)
else:
    if (h * w % 2 == 0):
        print(h * w // 2)
    else:
        print(h * w // 2 + 1)
Buggy code:
h,w=map(int,input().split())
print(1 if min(h,w) else (h*w+2-1)//2)


Fixed code:
h,w=map(int,input().split())
if min(h,w)==1:
  print(1)
else:
  print((h*w+2-1)//2)
Buggy code:
H, W = map(int, input().split())

base = W // 2
if H % 2 == 1:
    print(base*H + (H - 1) // 2 + 1)
else:
    print(base*H)

Fixed code:
H, W = map(int, input().split())

base = W // 2
if H == 1 or W == 1:
    print(1)
elif W % 2 == 1:
    print(base*H + (H - 1) // 2 + 1)
else:
    print(base*H)
Buggy code:
a, b, c = [int(_) for _ in input().split()]
d = c - a - b
if d > 0 and d * d > 4 * b:
    print("Yes")
else:
    print("No")

Fixed code:
a, b, c = [int(_) for _ in input().split()]
d = c - a - b
if d > 0 and d * d > 4 * a * b:
    print("Yes")
else:
    print("No")
Buggy code:
a,b,c=map(int, input().split())  

if c-a-b<=0:
  print('No')
else:
  left = a * b
  right = ((c-a-b)**2)/4

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

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

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

d = c-a-b
#left = a * b
#right = ((d)**2)/4
left = 4 * a * b
right = d**2
if d>0 and left < right:
  print('Yes')
else:
  print('No')
Buggy code:
a, b, c = map(int, input().split())
print("Yes" ((c-a-b) > 0 and 4*a*b < (c-a-b)**2) if else "No")


Fixed 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')
Buggy code:
import sys
import itertools
input = sys.stdin.readline
sys.setrecursionlimit(100000)


def read_values():
    return map(int, input().split())


def read_index():
    return map(lambda x: x - 1, map(int, input().split()))


def read_list():
    return list(read_values())


def read_lists(N):
    return [read_list() for n in range(N)]


def functional(N, mod):
    F = [1] * (N + 1)
    for i in range(N):
        F[i + 1] = (i + 1) * F[i] % mod
    return F


def main():
    a, b, c = read_values()
    print("Yes" if c - a - b> 2 * (a * b) ** 0.5) else "No")


if __name__ == "__main__":
    main()

Fixed code:
import sys
import itertools
input = sys.stdin.readline
sys.setrecursionlimit(100000)


def read_values():
    return map(int, input().split())


def read_index():
    return map(lambda x: x - 1, map(int, input().split()))


def read_list():
    return list(read_values())


def read_lists(N):
    return [read_list() for n in range(N)]


def functional(N, mod):
    F = [1] * (N + 1)
    for i in range(N):
        F[i + 1] = (i + 1) * F[i] % mod
    return F


def main():
    a, b, c = read_values()
    r = c - a - b
    if r <= 0:
        print("No")
        return
    
    print("Yes" if (c - a - b) ** 2 > 4 * a * b else "No")

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


Fixed 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")
Buggy code:
import math
L = input().split()

l = [ int(n) for n in L ]

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


# ans = math.sqrt(a) +math.sqrt(b) - math.sqrt(c)
# ans = a + b -c +2*math.sqrt(a*b)
# ans = a**2 + b **2 + c **2 -2*a*b -2*b*c-2*a*c 

ans = (a-b)*(a-b) + (b-c)*(b-c) + (c-a)*(c-a) - b*b -c*c -a*a 

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

Fixed code:
import math
L = input().split()

l = [ int(n) for n in L ]

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


# ans = math.sqrt(a) +math.sqrt(b) - math.sqrt(c)
# ans = a + b -c +2*math.sqrt(a*b)
# ans = a**2 + b **2 + c **2 -2*a*b -2*b*c-2*a*c 

ans = (a-b)*(a-b) + (b-c)*(b-c) + (c-a)*(c-a) - b*b -c*c -a*a 

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

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

print(a*a + b*b + c*c)
print(2*(a*b + a*c + b*c))

Fixed 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')
Buggy 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')


Fixed 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')
Buggy code:
import math
import numpy
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")


Fixed code:
import math
import numpy as np
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")
Buggy code:
a,b,c = map(int, input().split())
if 4*a*b<(c-a-b)**2
  print('Yes')
else:
  print('No')


Fixed 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')
Buggy code:
a, b, c = map(int, input().split())

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

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

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

Fixed 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")
Buggy code:
a,b,c = map(int, input().split())

d = c - a - b
e = 4*a*b

if(d>0 and d*2 > e):
    print('Yes')
else:
    print(('No')

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

d = c - a - b
e = 4*a*b

if(d>0 and d**2 > e):
    print('Yes')
else:
    print('No')
Buggy code:
from math import sqrt
a,b,c=map(int,input().split())
k=c-a-b
if k>0 and k*k> 4*a*b:
  print("Yes")
else print("No")


Fixed code:
from math import sqrt
a,b,c=map(int,input().split())
k=c-a-b
if k>0 and k*k> 4*a*b:
  print("Yes")
else:
  print("No")
Buggy code:
a,b,c = map(int,input().split())

res = (c-a-b)**2 - a*b 

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

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

res = (c-a-b)**2 - 4* a*b 

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

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

if p<q:
    print("Yes")
else:
    print("No")


Fixed code:
a,b,c = map(int, input().split())
p = 4*a*b
q = (c-a-b)**2

if (c-a-b)<0:
    print("No")

elif p<q:
    print("Yes")
else:
    print("No")
Buggy code:
def main():
    a,b,c = map(int, input().split(" "))

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

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

    if (4 * a * b) < (c - a - b) * (c - a - b) and (c - a - b) > 0:
        print('Yes')
    else:
        print('No')
main()
Buggy code:
import numpy as np

[a, b, c] = [int(i) for i in input().split()]
if ((a+b+c)**2 > 4*a*b) and (a+b < c):
  print('Yes')
else:
  print('No')

Fixed code:
import numpy as np

[a, b, c] = [int(i) for i in input().split()]
if ((a+b-c)**2 > 4*a*b) and (a+b < c):
  print('Yes')
else:
  print('No')
Buggy code:
a,b,c=map(int,input().split())
if c>=a*b and a*b*4<(c-a*b)**2:
    print("Yes")
else:
    print("No")


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

Fixed code:
a,b,c=map(int,input().split())
if c>=a+b and a*b*4<(c-a-b)**2:
    print("Yes")
else:
    print("No")
Buggy code:
import sys
import math
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
a,b,c = LI()



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

Fixed code:
import sys
import math
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
a,b,c = LI()



if c-a-b > 0 and (4*a*b) < ((c-a-b)**2) :
    print('Yes')
else:
    print('No')
Buggy code:
#!/usr/bin/env python
# coding: utf-8

import math
def ri():
    return int(input())

def rl():
    return list(input().split())

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

def main():
    a, b, c = rli()
    if a*b < (c-a-b)*(c-a-b):
        print('Yes')
    else:
        print('No')



if __name__ == '__main__':
    main()


Fixed code:
#!/usr/bin/env python
# coding: utf-8

import math
def ri():
    return int(input())

def rl():
    return list(input().split())

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

def main():
    a, b, c = rli()
    if c - a - b < 0:
        print('No')
        return
    if 4*a*b < (c-a-b)*(c-a-b):
        print('Yes')
    else:
        print('No')



if __name__ == '__main__':
    main()
Buggy code:
import math
a,b,c = map(int,(input().split()))



left = 4 * a * b
d = c -a -b
right =d * d

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

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

left = 4 * a * b
d = c -a -b
right =d * d

if d < 0:
    print("No")
elif left < right:
    print("Yes")
else:
    print("No")
Buggy 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 a(a-2*b)+b*(b-2*c)+c*(c-2*a)> 0:
    print("Yes")
else:
    print("No")

Fixed 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")
Buggy code:
a,b,c = map(int,input().split())


ans = (a+b-c)**2+4*a*b

if ans <0:
	print("Yes")
else:
	print("No")


Fixed code:

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

s = c - a - b

if s < 0:
    ans = 'No'
else:
    if 4*a*b < s**2:
        ans = 'Yes'
    else:
        ans = 'No'

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

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

Fixed 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')
Buggy code:

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

Fixed code:

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

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


Fixed 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")
Buggy code:
a, b, c = [int(i) for i in input().split()]
left = 4 * a * b
right = (c**2 - a**2 - b**2)**2
if left < right:
    print("Yes")
else:
    print("No")

Fixed code:
a, b, c = [int(i) for i in input().split()]
left = 4 * a * b
right = (c - a - b)**2
if left < right and c - a - b > 0:
    print("Yes")
else:
    print("No")
Buggy code:
a, b, c = input().split()

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


Fixed 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")
Buggy code:
a, b, c = map(int, input().split())

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

Fixed 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')
Buggy code:
[a, b, c] = input().split()
a = int(a)
b = int(b)
c = int(c)

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


Fixed 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")
Buggy 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')

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

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

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

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

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

Fixed 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')
Buggy code:
import math,itertools,fractions,heapq,collections,bisect,sys,queue,copy

sys.setrecursionlimit(10**7)
inf=10**20
mod=10**9+7
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 [int(x) for x in sys.stdin.readline().split()]
def I(): return int(sys.stdin.readline())
def LS(): return sys.stdin.readline().split()
def S(): return input()

def main():
  a,b,c=LI()

  if abs((4*a*b)-((c-a-b)**2))<1e-10:
    return 'Yes'
  return 'No'

# main()
print(main())


Fixed code:
import math,itertools,fractions,heapq,collections,bisect,sys,queue,copy

sys.setrecursionlimit(10**7)
inf=10**20
mod=10**9+7
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 [int(x) for x in sys.stdin.readline().split()]
def I(): return int(sys.stdin.readline())
def LS(): return sys.stdin.readline().split()
def S(): return input()

def main():
  a,b,c=LI()

  if c-a-b<=0:
    return 'No'

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

# main()
print(main())
Buggy code:
import numpy as np
import decimal

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

print(np.sqrt(a))

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

Fixed code:
import numpy as np
import decimal

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

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

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


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

Fixed 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")
Buggy code:
line = input()
 
data = line.split()
 
import math
a =int(data[0])
b =int(data[1])
c =int(data[2])
if(-a-b+c)*(-a-b+c) >a*b*4:
  print("Yes")
else:
  print("No")
print((a+b-c)*(a+b-c) ,a*b*4)

Fixed code:
line = input()
 
data = line.split()
 
import math
a =int(data[0])
b =int(data[1])
c =int(data[2])
if c-a-b>0:
  if(-a-b+c)*(-a-b+c) >a*b*4:
    print("Yes")
  else:
    print("No")
else:
  print("No")
Buggy code:
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")

Fixed 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")
Buggy 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')

Fixed 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')
Buggy 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>:
  print('Yes')
  else:
    print('No')
else:
  print ('No')


Fixed 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')
Buggy code:
from math import sqrt

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

else:
    print('No') 


Fixed 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')
Buggy 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 print('No')

Fixed 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')
Buggy code:
l=[int(e) for e in input().split(' ')]
a=l.pop(0)
b=l.pop(0)
c=l.pop(0)

lt=4*a*b
rt=c**2 - 2*(a+b)*c + (a+b)**2

print(lt)
print(rt)

if lt < rt:
    print('Yes')
else:
    print('No')

Fixed code:
l=[int(e) for e in input().split(' ')]
a=l.pop(0)
b=l.pop(0)
c=l.pop(0)

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


lt=4*a*b + 2*(a+b)*c
rt=c**2 + (a+b)**2

if lt < rt:
    print('Yes')
else:
    print('No')
Buggy code:
a,b,c = map(int,input().split())

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

Fixed 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")
Buggy code:
a,b,c = map(int,input().split())

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

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

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

if m <= 0:
 　print('No')

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

Fixed code:
a, b, c = map(int, input().split())
m = c - a - b

if m <= 0:
  print('No')

else:
  X = (m * m) - (4 * a * b)
  if X > 0:
    print('Yes')
  else:
    print('No')
Buggy code:
import math
a,b,c=[int(x) for x in input().split()]
if a*b*2<pow(c-a-b,2):
    print("Yes")
else:
    print("No")

Fixed code:
import math
a,b,c=[int(x) for x in input().split()]
if c-a-b<0:
    print("No")
elif a*b*4<pow(c-a-b,2):
    print("Yes")
else:
    print("No")
Buggy code:
def main():
    a, b, c = map(int, input().split())

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

    if 4 * a * b < c - a -b:
        is_big = True
    else:
        is_big = False

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

if __name__ == '__main__':
    main()


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

    if c - a - b <= 0:
        print('No')
        exit()

    if 4 * a * b < pow(c - a - b, 2):
        is_big = True
    else:
        is_big = False

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

if __name__ == '__main__':
    main()
Buggy code:
x,y,z = map(int, input().split())
 
if (x + y - z) * (x + y - z) > (4 * x * y):
  if x + y - z < 0:
    print('No')
  else:
    print('Yes')
else:
  print('No')

Fixed code:
x,y,z = map(int, input().split())
 
if (x + y - z) * (x + y - z) > (4 * x * y):
  if z -x - y < 0:
    print('No')
  else:
    print('Yes')
else:
  print('No')
Buggy code:
def c():
    a, b,c = map(int, input().split())
    ab = 4*a*b
    a_b_c = (c-(a+b))
    a_b_c_2 = a_b_c**2
    if a_b_c <=0:
        print("No")
    else:
        if ab < a_b_c:
            print("Yes")
        else:
            print("No")

if __name__ == '__main__':
    c()


Fixed code:
if __name__ == '__main__':
    a, b, c =map(int, input().split())
    ab = 4 * a * b
    a_b_c = (c - (a + b))
    a_b_c_2 = a_b_c ** 2
    if a_b_c <= 0:
        print("No")
    else:
        if ab < a_b_c_2:
            print("Yes")
        else:
            print("No")
Buggy code:
a, b, c = map(int, input().split())

import math

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


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

import math

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

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