qyliang/CodeNanoFix huggingface dataset:
Buggy code:
import sys
sys.setrecursionlimit(10**6)
def input(): return sys.stdin.readline()

A, B, C, X = [int(input()) for i in range(4)]

cnt = 0
for a in range(A):
	for b in range(B):
		for c in range(C):
			if 500*a + 100*b + 50*c == X:
				cnt += 1

print(cnt)

Fixed code:
import sys
sys.setrecursionlimit(10**6)
def input(): return sys.stdin.readline()

A, B, C, X = [int(input()) for i in range(4)]

cnt = 0
for a in range(A+1):
	for b in range(B+1):
		for c in range(C+1):
			if 500*a + 100*b + 50*c == X:
				cnt += 1

print(cnt)
Buggy code:
a = int(input())
b = int(input())
c = int(input())
x = int(input())
ans = 0

for i in range(a + 1):
    for j in range(b + 1):
        for k in range(c + 1):
            if i * 500  + j * 100 + c * 50 == x:
                ans += 1

print(ans)


Fixed code:
a = int(input())
b = int(input())
c = int(input())
x = int(input())

count = 0
for i in range(a+1):
    for j in range(b+1):
        for k in range(c+1):
            if 500*i + 100*j + 50*k == x:
                count += 1

print(count)
Buggy code:
a=int(input())
b=ibt(input())
c=int(input())
x=int(input())
ans=0
for i in range(a+1):
    for j in range(b+1):
        for k in range(c+1):
            if x==500*i+100*j+50:
                ans+=1
print(ans)

Fixed code:
a=int(input())
b=int(input())
c=int(input())
x=int(input())
ans=0
for i in range(a+1):
    for j in range(b+1):
        for k in range(c+1):
            if x==500*i+100*j+50*k:
                ans+=1
print(ans)
Buggy code:
a=int(input())
b=int(input())
c=int(input())
x=int(input())
ans=0
for i in range(a+1):
    for j in range(b+1):
        for k in range(c+1):
            if x==500*i+100*j+50:
                ans+=1
print(ans)


Fixed code:
a=int(input())
b=int(input())
c=int(input())
x=int(input())
cnt=0
for i in range(a+1):
    for j in range(b+1):
        for k in range(c+1):
            if 500*i+100*j+50*k==x:
                cnt+=1
print(cnt)
Buggy code:
A = int(input())
B = int(input())
C = int(input())
X = int(input())
ans = 0

for a in range(0,A+1):
	for b in range(0,B+1):
		for c in range(0,B+1):
			if (a*500) + (b * 100) + (c * 50) == X: 
				ans = ans + 1

print(ans)

Fixed code:
A = int(input())
B = int(input())
C = int(input())
X = int(input())
#A,B,C,X = 2,2,2,100
ans = 0

for a in range(0,A+1):
	for b in range(0,B+1):
		for c in range(0,C+1):
			if a * 500 + b * 100 + c * 50 == X: 
				ans = ans + 1

print(ans)
Buggy code:
a, b, c, x = map(int, [input() fot i in range(4)])

ans = 0

for i in range(a+1):
  for j in range(b+1):
    for k in range(c+1):
      if i*500 + j*100 + k*50 == x:
        ans += 1
print(ans)

Fixed code:
a, b, c, x = map(int, [input() for i in range(4)])

ans = 0
for i in range(a+1):
  for j in range(b+1):
    for k in range(c+1):
      if 500 * i + 100* j + 50 * k == x:
        ans += 1
        
print(ans)
Buggy code:
A, B, C, X = [int(input()) for i in range(4)]
ans =0
for i in range(A+1):
    for j in range(B+1):
        for k in range(C+1):
            if 500*i + 100*j + 50*k == X:
                ans += 1
                
print(ans

Fixed code:
A, B, C, X = [int(input()) for i in range(4)]
ans =0
for i in range(A+1):
    for j in range(B+1):
        for k in range(C+1):
            if 500*i + 100*j + 50*k == X:
                ans += 1
                
print(ans)
Buggy code:
result = 0
A = int(input()) #500
B = int(input()) #100
C = int(input()) #50
X = int(input()) 

for a in range(A):
  if a * 500 <= X:
    tmp = a * 500
    for b in range(B):
      if tmp + b * 100 <= X:
        tmp += b * 100
        for c in range(C):
          if tmp + c * 50 <= X:
	          tmp += c * 50
          if tmp == X:
            result += 1

print(result)



Fixed code:
result = 0
A = int(input()) #500
B = int(input()) #100
C = int(input()) #50
X = int(input()) 
  
for a in range(A+1):
    for b in range(B+1):
        for c in range(C+1):
          if 500*a + 100*b + 50*c == X:
            result += 1
 
print(result)
Buggy code:
A500 = int(input())
B100 = int(input())
C50 = int(input())
X = int(input())

c = 0
for i in range(A500):
  for j in range(B100):
    for k in range(C50):
      if X == i*500 + j* 100 + k*50:
        c+=1
print(c)

Fixed code:
A500 = int(input())
B100 = int(input())
C50 = int(input())
X = int(input())

c = 0
for i in range(A500+1):
  for j in range(B100+1):
    for k in range(C50+1):
      if X == i*500 + j* 100 + k*50:
        c+=1
print(c)
Buggy code:
a = int(input())
b = int(input())
c = int(input())
x = int(input())
count = 0

for i in range(1,a+1):
  for j in range(1,b+1):
    for k in range(1,c+1):
      if i*500 + j*100 + k*50 == x:
        count += 1
        
        
print(count)

Fixed code:
a = int(input())
b = int(input())
c = int(input())
x = int(input())
count = 0

for i in range(0,a+1):
  for j in range(0,b+1):
    for k in range(0,c+1):
      if i*500 + j*100 + k*50 == x:
        count += 1
        
        
print(count)
Buggy code:
a,b,c,x = map(int,[input() for i in range(4)]):
ans = 0:
  
  for i in range(a+1):
    for i in range(b+1):
      for i in range(c+1):
        if a*500 + b*100 + c*50 == x:
          ans +=1:
            
print(ans):
          

Fixed code:
a,b,c,x = map(int,[input() for i in range(4)])
ans = 0
for i in range(a+1):
  for j in range(b+1):
    for f in range(c+1):
      if i*500 + j*100 + f*50 == x:
        ans +=1
            
print(ans)
Buggy code:
l = [int(input()) for i in range(3)]
x = int(input())
count = 0
for i in range(l[0]+1):
  for j in range(l[1]+1):
    for k in range(l[2]+1):
      if 500*i+100*j+50*c == x:
        count += 1
print(count)
      

Fixed code:
l = [int(input()) for i in range(3)]
x = int(input())
count = 0
for i in range(l[0]+1):
  for j in range(l[1]+1):
    for k in range(l[2]+1):
      if 500*i+100*j+50*k == x:
        count += 1
print(count)
Buggy code:
A = int(input())
B = int(input())
C = int(input())
X = int(input())

A_list = list()
for i in range(A) :
    A_list.append(i*500)
B_list = list()
for i in range(B) :
    B_list.append(i*100)
C_list = list()
for i in range(C) :
    C_list.append(i*50)

count = 0
for a in A_list :
    for b in B_list :
        for c in C_list :
            if (a + b + c) == X :
                count += 1

print count

Fixed code:
A = int(input())
B = int(input())
C = int(input())
X = int(input())

A_list = list()
for i in range(A+1) :
    A_list.append(i*500)
B_list = list()
for i in range(B+1) :
    B_list.append(i*100)
C_list = list()
for i in range(C+1) :
    C_list.append(i*50)

count = 0
for a in A_list :
    for b in B_list :
        for c in C_list :
            if (a + b + c) == X :
                count += 1

print(count)
Buggy code:
a = input()
b = input()
c = input()
x = input()
z = 0
number = 0
for i in range(a+1):
    for g in range(b+1):
        for h in range(c+1):
            z = 500*i + 100*g + 50*h
            if x == z:
                number += 1

print(number)
                

Fixed code:
a = int(input())
b = int(input())
c = int(input())
x = int(input())
z = 0
number = 0
for i in range(a+1):
    for g in range(b+1):
        for h in range(c+1):
            z = 500*i + 100*g + 50*h
            if x == z:
                number += 1

print(number)
Buggy code:
a=int(input())
b=int(input())
c=int(input())
x=int(input())
end=0
for i in range(a+1):
    for j in range(b+1):
        for k in range(c+1):
            s= i*500 + j*100 + k*50
            if s==x:
                end+=1
print(c)


Fixed code:
a=int(input())
b=int(input())
c=int(input())
x=int(input())
end=0
for i in range(a+1):
    for j in range(b+1):
        for k in range(c+1):
            s= i*500 + j*100 + k*50
            if s==x:
                end+=1
print(end)
Buggy code:
a = int(input())
b = int(input())
c = int(input())
x = int(input())

ans = 0

for k in range(a):
    for l in range(b):
        for m in range(c):
            total = 500 * k + 100 * l + 50 * m
            if total == x:
                ans += 1

print(ans)


Fixed code:
a = int(input())
b = int(input())
c = int(input())
x = int(input())

ans = 0

for k in range(a+1):
    for l in range(b+1):
        for m in range(c+1):
            total = 500 * k + 100 * l + 50 * m
            if total == x:
                ans += 1

print(ans)
Buggy code:
import math
a,b = input().split()
n = int("".join(list(a) + list(b)))
m = math.sqrt(n)
if n == int(math.floor(m)):
  print("Yes")
else:
  print("No")


Fixed code:
import math
a,b = input().split()
n = int("".join(list(a) + list(b)))
m = int(math.floor(math.sqrt(n)))

if n == m**2:
  print("Yes")
else:
  print("No")
Buggy code:
heck = int(input().replace(" ",""))
print("Yes" if (check**0.5)%1==0 else "No" )

Fixed code:
check = int(input().replace(" ",""))
print("Yes" if (check**0.5)%1==0 else "No" )
Buggy code:
a, b = input().split()
c = int(a+b)
d = math.sqrt(c)
if d%1 == 0:
  print("Yes")
else:
  print("No")

Fixed code:
import math
a, b = input().split()
c = a+b
c = int(c)
d = math.sqrt(c)
if d%1 == 0:
  print("Yes")
else:
  print("No")
Buggy code:
a,b = input().split()
t = int(a+b)
print("Yes" if t == int(c**0.5)**2 else "No")


Fixed code:
a,b = input().split()
t = int(a+b)
print("Yes" if t == int(t**0.5)**2 else "No")
Buggy code:
ri = lambda: int(input())
rl = lambda: list(map(int,input().split()))
rr = lambda N: [ri() for _ in range(N)]
YN = lambda b: print('YES') if b else print('NO')
INF = 10**18

a,b = rl()

c = int(str(a)+str(b))
c_ = int(c**0.5)

YN(c==c_*c_)


Fixed code:
ri = lambda: int(input())
rl = lambda: list(map(int,input().split()))
rr = lambda N: [ri() for _ in range(N)]
YN = lambda b: print('YES') if b else print('NO')
INF = 10**18

a,b = rl()

c = int(str(a)+str(b))
c_ = int(c**0.5)

if c==c_*c_:
    print('Yes')
else:
    print('No')
Buggy code:
a,b=map(str,input().split())
num=int(a+b)
print(num)

ans=num**0.5

if ans//1==ans:
    print('Yes')
else:
    print('No')

Fixed code:
a,b=map(str,input().split())
num=int(a+b)

ans=num**0.5

if (ans//1)**2==num:
    print('Yes')
else:
    print('No')
Buggy code:
a,b=map(str,input().split())
ab=int(a+b)
if (ab**.5).is_integer() = "True":
  print("Yes")
else:
  print("No")

Fixed code:
a,b=map(str,input().split())
ab=int(a+b)
if (ab**.5).is_integer():
  print("Yes")
else:
  print("No")
Buggy code:
a,b=map(int,input().split())
x=a+b
q=[i*i for i in range(1000)]
if x in q:
    print("Yes")
else:
    print("No")

Fixed code:
a,b=input().split()
x=a+b
x=int(x)
q=[i*i for i in range(1000)]
if x in q:
    print("Yes")
else:
    print("No")
Buggy code:
a,b=int(input().replace(" ",""))
flg=False
i=0
while i**2<=ab:
    if i**2==ab:
        flg=True
        break
    i+=1

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

Fixed code:
ab=int(input().replace(" ",""))
flg=False
i=0
while i**2<=ab:
    if i**2==ab:
        flg=True
        break
    i+=1

print("Yes" if flg else "No")
Buggy code:
a,b = map(int, input().split())

if b<10:
    N=10*a+b
elif b<100:
    N=100*a+b
else:
    N=1000*a+b
    
flag = -1

for i in range(317):
    if i*i == N:
        flag=1

if flag==1
    print("Yes")
else:
    print("No")

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

if b<10:
    N=10*a+b
elif b<100:
    N=100*a+b
else:
    N=1000*a+b
    
flag = -1

for i in range(317):
    if i*i == N:
        flag=1

if flag==1:
    print("Yes")
else:
    print("No")
Buggy code:

list=input().split()

num=int(list[0]+list[1])

num_squrt=math.sqrt(num)

if num_squrt.is_integer()==True:
    print("Yes")
else:
    print("No")

Fixed code:
import math 

list=input().split()

num=int(list[0]+list[1])

num_squrt=math.sqrt(num)

if num_squrt.is_integer()==True:
    print("Yes")
else:
    print("No")
Buggy code:
a, b = input().split()
ab = int(a+b)
print("Yes" if ab**(1/2))%1==0 else "No")

Fixed code:
a, b = input().split()
ab = int(a+b)

print("Yes" if ab**(1/2)%1==0 else "No")
Buggy code:
a,b=map(str,input().split())
c=a+b
c=int(c)
for i in range(1001):
  if i**2==c:
    print("Yes")

else:
  print("No")

Fixed code:
a,b=map(str,input().split())
c=a+b
c=int(c)
for i in range(1001):
  if i**2==c:
    print("Yes")
    exit()
print("No")
Buggy code:
a,b = map(input().split())
if int(a+b)**0.5%1 == 0:
  print("Yes")
else:
  print("No")

Fixed code:
a,b = map(str,input().split())
if int(a+b)**0.5%1 == 0:
  print("Yes")
else:
  print("No")
Buggy code:
a,b = input()
n = int(a+b)

print("Yes") if (n**0.5).is_integer() else print("No")

Fixed code:
a,b = input().split()
n = int(a+b)

print("Yes") if (n**0.5).is_integer() else print("No")
Buggy code:
a, b = input().split()
ab = int(a + b)
ans = False
for i in range(100000):
    if ab == i^2:
        ans = True
    else:
        continue
if ans == True:
    print('Yes')
elif ans == False:
    print('No')

Fixed code:
a, b = input().split()
ab = int(a + b)
ans = False
for i in range(100000):
    if ab == i**2:
        ans = True
    else:
        continue
if ans == True:
    print('Yes')
elif ans == False:
    print('No')
Buggy code:
def is_integer_num(n):
    if isinstance(n, int):
        return True
    if isinstance(n, float):
        return n.is_integer()
    return False
N = list(map(str,input().split(' ')))
A = int(N[0]+N[1])
if is_integer_num(A):
  print('Yes')
else:
  print('No')

Fixed code:
import math
def is_integer_num(n):
    if isinstance(n, int):
        return True
    if isinstance(n, float):
        return n.is_integer()
    return False
N = list(map(str,input().split(' ')))
A = math.sqrt(int((N[0]+N[1])))
if is_integer_num(A):
  print('Yes')
else:
  print('No')
Buggy code:
import math;a,b=input().split();a+=b;a=int(a);print("Yes"if math.sqrt(a)%1==0else"no")

Fixed code:
import math;a,b=input().split();a+=b;a=int(a);print("Yes"if math.sqrt(a)%1==0else"No")
Buggy code:
N = int(input().remove(" ", ""))

print("Yes" if round(N**0.5)**2 == N else "No")

Fixed code:
N = int(input().replace(" ", ""))
 
print("Yes" if round(N**0.5)**2 == N else "No")
Buggy code:
import math

list_a = input().split()
moji_a = list_a[0]+list_a[1]
#print(moji_a)
moji_i =int(moji_a)

moji_i2=math.sqrt(moji_i)
#print(str(moji_i2))

if moji_i2.is_integer:print("Yes")
else:print("No")

Fixed code:
import math

list_a = input().split()
moji_a = list_a[0]+list_a[1]
#print(moji_a)
moji_i =int(moji_a)

moji_i2=math.sqrt(moji_i)
#print(str(moji_i2))

if moji_i2.is_integer():print("Yes")
else:print("No")
Buggy code:
import math

a,b = input().split()
connect = int(a + b)
if math.sqrt(connect) * math.sqrt(connect) == connect :
	print('Yes')
else :
	print('No')

Fixed code:
import math

a,b = input().split()
connect = int(a + b)
if int(math.sqrt(connect)) * int(math.sqrt(connect)) == connect :
	print('Yes')
else :
	print('No')
Buggy code:
import math
s = int(input().replace(' ',''))
t = math.sqrt(s)
t = math.floor(t)
t = int(t)
if s**2 ==t:
  print("Yes")
else:
  print("No")

Fixed code:
import math
s = int(input().replace(' ',''))
if int(math.sqrt(s))**2 == s:
    print("Yes")
else:
    print("No")
Buggy code:
import math
a, b = map(str, input().split())
c = a + b
if math.sqrt(int(c)) - round(math.sqrt(int(c))) == 0:
    print("True")
else:
    print("No")

Fixed code:
import math
a, b = map(str, input().split())
c = a + b
if math.sqrt(int(c)) - round(math.sqrt(int(c))) == 0:
    print("Yes")
else:
    print("No")
Buggy code:
import sqrt
a, b = input().split()
if sqrt(int(a+b)) % 1 == 0:
  print("Yes")
else:
  print("No")

Fixed code:
from math import sqrt
a, b = input().split()
if sqrt(int(a+b)) % 1 == 0:
  print("Yes")
else:
  print("No")
Buggy code:
a, b = input().split()
x = int(a + b)
n = 1000
for i in range(n):
  if i**2 == x:
    print('Yes')
    break
print('No')

Fixed code:
a, b = input().split()
x = int(a + b)
n = 1000
for i in range(n):
  if i**2 == x:
    print('Yes')
    exit()
print('No')
Buggy code:
a,b = map(int,input().split())
if b<10:
    x=10*a+b
elif b<100:
    x=100*a+b
else:
    x=1000*a+b
for i in range(1000):
    if x==i*i:
        print("Yes")
        return 0
print("No")
return 0

Fixed code:
a,b = map(int,input().split())
if b<10:
    x=10*a+b
elif b<100:
    x=100*a+b
else:
    x=1000*a+b
c=0
for i in range(1000):
    if x==i*i:
        print("Yes")
        c=1
if c==0:      
    print("No")
Buggy code:
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))

ab = input().replace(' ','')

for i in range(0,101):
  if i**2==ab:
    print('Yes')
    exit()

print('No')


Fixed code:
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))

ab = int(input().replace(' ',''))

for i in range(1000):
  if i**2==ab:
    print('Yes')
    exit()

print('No')
Buggy code:
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7

a = l()
ans = " ".join(a)
for i in range(1,101):
    if ans == i**2:
        print("Yes")
        sys.exit()

print("No")


Fixed code:
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def X(): return list(input())
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7

a = L()
b = "".join(a)
b = int(b)
for i in range(1000):
    if b == i**2:
        print("Yes")
        sys.exit()

print("No")
Buggy code:
x=int(input()replace(" ",""))
if int((x**.5))**2=x:
  print("Yes")
else:
  print("No")

Fixed code:
x=int(input().replace(" ",""))
if int(x**.5)**2==x:
  print("Yes")
else:
  print("No")
Buggy code:
import math
a,b= map(int,input().split())

c=pow(10,len(str(b)))*a+b

if math.sqrt(c)**2 == c:
    print("Yes")
else:
    print("No")

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

c=pow(10,len(str(b)))*a+b

if pow(math.floor(math.sqrt(c)),2) == c:
    print("Yes")
else:
    print("No")
Buggy code:


a,b = list(map(str, input().split()))


ab = int(a + b)
import math
res = math.sqrt(ab)
if res*res == ab:
    print('Yes')
else:
    print('No')

Fixed code:


a,b = list(map(str, input().split()))


ab = int(a + b)
import math
res = int(math.sqrt(ab))
if res*res == ab:
    print('Yes')
else:
    print('No')
Buggy code:
import math
a,b = input().split()
print('YES' if (int(a+b))**.5 == int(math.sqrt(int(a+b))) else 'No')


Fixed code:
import math
a,b = input().split()
print('Yes' if (int(a+b))**.5 == int(math.sqrt(int(a+b))) else 'No')
Buggy code:
from sys import stdin


def main() -> None:
    a = next_int()
    b = next_int()

    ab = int(str(a) + str(b))
    sqrt = int(ab ** 0.5)

    print("YES" if sqrt ** 2 == ab else "No")


def next_int() -> int:
    return int(next_str())


def next_str() -> str:
    result = ""
    while True:
        tmp = stdin.read(1)
        if tmp.strip() != "":
            result += tmp
        elif tmp != '\r':
            break
    return result


if __name__ == '__main__':
    main()

Fixed code:
from sys import stdin


def main() -> None:
    a = next_int()
    b = next_int()

    ab = int(str(a) + str(b))
    sqrt = int(ab ** 0.5)

    print("Yes" if sqrt ** 2 == ab else "No")


def next_int() -> int:
    return int(next_str())


def next_str() -> str:
    result = ""
    while True:
        tmp = stdin.read(1)
        if tmp.strip() != "":
            result += tmp
        elif tmp != '\r':
            break
    return result


if __name__ == '__main__':
    main()
Buggy code:
a, b = input().split()
c = int(a + b)
t = c ** 0.5
d = int(t) ** 2
print(c, d)
if c == d:
    ans = 'Yes'
else:
    ans = 'No'
print(ans)


Fixed code:
a, b = input().split()
c = int(a + b)
t = c ** 0.5
d = int(t) ** 2
if c == d:
    ans = 'Yes'
else:
    ans = 'No'
print(ans)
Buggy code:
a,b = input().split()
num = int(a+b)
import math
root = math.sqrt(num)
if isinstance(root,int):
  print('Yes')
else:
  print('No')


Fixed code:
a,b = input().split()
num = int(a+b)
import math
root = math.sqrt(num)
if root.is_integer():
  print('Yes')
else:
  print('No')
Buggy code:
a,b = input().split()
num = int(a+b)
import math
root = math.sqrrt(num)
if root%1==0:
  print('Yes')
else:
  print('No')

Fixed code:
a,b = input().split()
num = int(a+b)
import math
root = math.sqrt(num)
if root%1==0:
  print('Yes')
else:
  print('No')
Buggy code:
import math

a, b = input().split()
n = int(a+b)

if math.abs(math.sqrt(n)**2 - n) < 1e-6:
    print("Yes")
else:
    print("No")

Fixed code:
import math

a, b = input().split()
n = int(a+b)

m = int(math.sqrt(n))

if abs(m**2 - n) < 1e-6:
    print("Yes")
else:
    print("No")
Buggy code:
import sys
a,b=map(str,input().split())
s=int(a+b)
print(s)
for i in range(1100):
    if s==i**2:
        print("Yes")
        sys.exit()
print("No")

Fixed code:
import sys
a,b=map(str,input().split())
s=int(a+b)
#print(s)
for i in range(1100):
    if s==i**2:
        print("Yes")
        sys.exit()
print("No")
Buggy code:
ab = int(''.join(input().split()))
if ab**0.5.is_intejer():
  print('Yes')
else:
  print('No')


Fixed code:
ab = int(''.join(input().split()))
if (ab**0.5).is_integer():
  print('Yes')
else:
  print('No')
Buggy code:
import math
s=input().split()
X=int(s[0]+s[1])
print(X)
root=math.sqrt(X)
print(root)
a=root//1
print(a)
if a**2!=X:
  print('No')
else:
  print('Yes')

Fixed code:
import math
s=input().split()
X=int(s[0]+s[1])
root=math.sqrt(X)
a=root//1
if a**2!=X:
  print('No')
else:
  print('Yes')
Buggy code:
a,b = input().split()
c = a + b
d = []
for i in range(400):
  d.append(i**2)
if c in d:
  print("Yes")
else:
  print("No")

Fixed code:
a,b = input().split()
c = int(a + b)
d = []
for i in range(400):
  d.append(i**2)
if c in d:
  print("Yes")
else:
  print("No")
Buggy code:
a,b = input().split()
c = a+b
d = float(int(c))
e = d**(1/2)
if e*e == d:
    print("Yes")
else:
    print("No")


Fixed code:
a,b = input().split()
c = a+b
d = float(int(c))
e = int(d**(1/2))
if e*e == d:
    print("Yes")
else:
    print("No")
Buggy code:
import numpy in np

a, b = input().split()
a = a+b

if np.sqrt(int(a)).is_integer():
	print("Yes")
else:
	print("No")


Fixed code:
import numpy as np

a, b = input().split()
a = a+b

if np.sqrt(int(a)).is_integer():
	print("Yes")
else:
	print("No")
Buggy code:
input_str = str(input()).split(" ")
a = input_str[0]
b = input_str[1]

ab_text = int(a+b)

if (ab_text**(1/2))**2 == ab_text:
	print("Yes")
else:
	print("No")

Fixed code:
input_str = str(input()).split(" ")
a = input_str[0]
b = input_str[1]

ab_text = int(a+b)

if int(ab_text**(1/2))**2 == ab_text:
	print("Yes")
else:
	print("No")
Buggy code:
import math
s1, s2 = input().split()
s1 += s2
a = int(s1)
if math.sqrt(a) * math.sqrt(a) == a:
  print("Yes")
else:
  print("No")

Fixed code:
import math
s1, s2 = input().split()
s1 += s2
a = int(s1)
if math.floor(math.sqrt(a)) * math.floor(math.sqrt(a)) == a:
  print("Yes")
else:
  print("No")
Buggy code:
a , b = map(int , input().split)
c=str(a)+str(b)
c=int(c)
for i in range (20):
    if c== int(i*i):
        print("Yes")  
        break      
    elif i==20-1:
        print("No")
        break

        

Fixed code:
a , b = map(int , input().split())
c=str(a)+str(b)
c=int(c)
for i in range (1000):
    if c== int(i*i):
        print("Yes")  
        break      
    elif i==1000-1:
        print("No")
        break
Buggy code:
import math
a,b=map(str,input().split())
c=a+b
c=int(c)
print(c)
d=math.sqrt(c)
if d==int(d):
    print('Yes')
else:
    print('No')

Fixed code:
import math
a,b=map(str,input().split())
c=a+b
c=int(c)
d=math.sqrt(c)
if d==int(d):
    print('Yes')
else:
    print('No')
Buggy code:
square=[]
for i in range(400):
  square.append(i*i)
a,b=int(input().split())
p=a*(10**len(str(b)))+b
if p in square:
  print('Yes')
else:
  print('No')

Fixed code:
square=[]
for i in range(400):
  square.append(i*i)
a,b=map(int,input().split())
p=a*(10**len(str(b)))+b
if p in square:
  print('Yes')
else:
  print('No')