qyliang/CodeNanoFix huggingface dataset:
Buggy code:
a, b = map(int, input().split())
c = 10 * a + b
if int((c ** 0.5)) ** 2 == c:
    print('Yes')
else:
    print('No')

Fixed code:
a, b = map(str, input().split())
c = int(a + b)
if int((c ** 0.5)) ** 2 == c:
    print('Yes')
else:
    print('No')
Buggy code:
import math
a,b = [int(hoge) for hoge in input().split()]
x = 10**len(str(b))*a+b
print("Yes") if math.sqrt(x)**2 == x else print("No")

Fixed code:
import math
a,b = [int(hoge) for hoge in input().split()]
x = 10**len(str(b))*a+b
print("Yes") if int(math.sqrt(x))**2 == x else print("No")
Buggy code:
a=int(input().replace(" ",""))
if a//int(a**0.5)==int(a**0.5):
  print("Yes")
else:
  print("No")

Fixed code:
a=int(input().replace(" ",""))
if int(a**0.5)**2==a:
  print("Yes")
else:
  print("No")
Buggy code:
a, b = input().split()
ab = int(a+b)
sqrt_ab = ab**(1/2)
if int(sqrt_ab)**2 == ab:
    print('Yes')
else:
    print('No')
print(ab, sqrt_ab)

Fixed code:
a, b = input().split()
ab = int(a+b)
sqrt_ab = ab**(1/2)
if int(sqrt_ab)**2 == ab:
    print('Yes')
else:
    print('No')
Buggy code:
print("NYoe s"[int(input().replace(" ",""))**0.5%1<1::2])

Fixed code:
print("NYoe s"[int(input().replace(" ",""))**0.5%1==0::2])
Buggy code:
def resolve():
    import math
    a, b = input().split()
    num = int(a+b)
    ans = num**0.5%1
    if ans == 0:
        print('Yes')
    else:
        print('No')
#resolve()


Fixed code:
def resolve():
    import math
    a, b = input().split()
    num = int(a+b)
    ans = (num**0.5)%1
    if ans == 0:
        print('Yes')
    else:
        print('No')
resolve()
Buggy code:
# -*- coding: utf-8 -*-
import math

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

c = int(a + b)

if math.sqrt(c).is_integer():
    print ("YES")
    
else:
    print("No")

Fixed code:
# -*- coding: utf-8 -*-
import math

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

c = int(a + b)

if math.sqrt(c).is_integer():
    print ("Yes")
    
else:
    print("No")
Buggy code:
a, b = map(int, input().split())
c = int(a + b)
d = c**(1/2)
print(d)
if d.is_integer():
    print("Yes")
else:
    print("No")

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

c = a + b

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

Fixed code:
a,b = input().split()
ab = a + b
ab = int(ab)
if (ab**0.5).is_integer() == True:
  print('Yes')
else:
  print('No')
Buggy code:
a,b=input().split
x=int(a+b)
for i in range(1000):
  if i**2==x:
    print("Yes")
    exit()
print("No")

Fixed code:
a,b=input().split()
x=int(a+b)
for i in range(1000):
  if i**2==x:
    print("Yes")
    exit()
print("No")
Buggy code:
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools
sys.setrecursionlimit(10**8)
mod = 10**9+7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpln(n): return list(int(sys.stdin.readline()) for i in range(n))

a,b = inpl()
if math.sqrt(int(str(a) + str(b))).is_integer:
    print('Yes')
else:
    print('No')

Fixed code:
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools
sys.setrecursionlimit(10**8)
mod = 10**9+7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpln(n): return list(int(sys.stdin.readline()) for i in range(n))

a,b = inpl()
# print(str(a) + str(b))
if math.sqrt(int(str(a) + str(b))).is_integer(): 
    print('Yes')
else:
    print('No')
Buggy code:
a, b = map(int, input().split())
c = str(a) + str(b)
c = int(c)
d = c**(1/2)
if isinstance(d, int):
  print("Yes")
else:
  print("No")

Fixed code:
a, b = map(int, input().split())
c = str(a) + str(b)
c = int(c)
d = c**(1/2)

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

#n = int(input())
#a = int(input())
a,b = list(map(int,input().split(" ")))
#ls = list(input().split(" "))
#ls = list(map(int,input().split(" ")))
#a,b = list(input().split())
#string = input()
#ls = [int(input()) for i in range(n)]
#ls1 = [input() for i in range(n)]
#m = int(input())
#ls2 = [input() for i in range(m)]
num = str(a) + str(b)
num = int(num)
tmp = pow(num,0.5)
if math.ceil(tmp) == math.floor(tmp):
  print("YES")
  quit()
else:
  print("NO")

Fixed code:
import math

#n = int(input())
#a = int(input())
a,b = list(map(int,input().split(" ")))
#ls = list(input().split(" "))
#ls = list(map(int,input().split(" ")))
#a,b = list(input().split())
#string = input()
#ls = [int(input()) for i in range(n)]
#ls1 = [input() for i in range(n)]
#m = int(input())
#ls2 = [input() for i in range(m)]
num = str(a) + str(b)
num = int(num)
tmp = pow(num,0.5)
if math.ceil(tmp) == math.floor(tmp):
  print("Yes")
  quit()
else:
  print("No")
Buggy code:
a = input()
b = int(a.replace(' ', ''))

print(b)

if abs(int(math.sqrt(b)) - math.sqrt(b)) < 10e-6 :
    print('Yes')
else:
    print('No')


Fixed code:
import math

a = input()
b = int(a.replace(' ', ''))

if abs(int(math.sqrt(b)) - math.sqrt(b)) < 10e-6 :
    print('Yes')
else:
    print('No')
Buggy code:
a = int(list(input().split()).join(''))
print('Yes' if int(a**.5) == (a**.5) else 'No')


Fixed code:
a = int(''.join(list(input().split())))
print('Yes' if int(a**.5) == (a**.5) else 'No')
Buggy code:
a, b = list(map(int, input().split()))

c = int(str(a) + str(b))
ans = 'Yes' if c == c ** (1/2) ** 2 else 'No'
print(ans)


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

c = int(str(a) + str(b))
ans = 'Yes' if c ** (1/2) == int(c ** (1/2)) else 'No'
print(ans)
Buggy code:
a,b = input().split()
x = int(a+b)

if x == (x**0.5)**2:
    print('Yes')
else:
    print('No')


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

if x == int(x**0.5)**2:
    print('Yes')
else:
    print('No')
Buggy code:
import math
a,b = input().split()

num = int(a + b)
print(num)
if math.sqrt(num) % 1 == 0:
    print("Yes")
else:
    print("No")


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

num = int(a + b)
if math.sqrt(num) % 1 == 0:
    print("Yes")
else:
    print("No")
Buggy code:
a,b=map(int,input().split())
n=a+b
l=0
for i in range(101):
    if n==i**2:
        l=1

if l==0:
    print("No")
else:
    print("Yes")

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

l=0
for i in range(1000):
    if n==i**2:
        l=1

if l==0:
    print("No")
else:
    print("Yes")
Buggy code:
S,T=input().split()
x=int(S+T)
if int(math.sqrt(x))**2==x:
  print('Yes')
else:
  print('No')


Fixed code:
import math
S,T=input().split()
x=int(S+T)
if int(math.sqrt(x))**2==x:
  print('Yes')
else:
  print('No')
Buggy code:
#https://atcoder.jp/contests/abc086/tasks/abc086_b

import math
def try_square_root_naive(n):
    m = int(n**.5)
    return True if m == m // 1 else None

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

n = 10 ** int(math.log10(b)) * a + b

if try_square_root_naive(n) == True:
    print('Yes')
else:
    print('No')



Fixed code:
#https://atcoder.jp/contests/abc086/tasks/abc086_b

import math
def try_square_root_naive(n):
    m = float(n**.5)
    return True if m == m // 1 else None

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

n = 10 ** len(str(b)) * a + b
#print(n)
if try_square_root_naive(n) == True:
    print('Yes')
else:
    print('No')
Buggy code:
int(input().replace(' ','')
print("Yes" if int(s**0.5)**2==s) else "No")

Fixed code:
s = int(input().replace(' ',''))
print("Yes" if int(s**0.5)**2==s else "No")
Buggy code:
n = input().split()
x = int("".join(n))
print("Yes") if x%x**0.5 == x**0.5 else print("No")

Fixed code:
n = input().split()
x = int("".join(n))**0.5
print("Yes") if x.is_integer() else print("No")
Buggy code:
a,b=map(str,input().split())
ab=int(a+b)
print("Yes" if ab**0.5.is_integer()==True else "No")

Fixed code:
a,b=map(str,input().split())
ab=int(a+b)
ab=ab**0.5
print("Yes" if ab.is_integer()==True else "No")
Buggy code:
# B - 1 21
a,b = map(int,input().split())
x = a*len(str(b))+b
ans = 'No'
for y in range(1000):
    if x==y*y:
        ans = 'Yes'
        break
print(ans)

Fixed code:
# B - 1 21
a,b = map(int,input().split())
x = a*(10**len(str(b)))+b
ans = 'No'
for y in range(1000):
    if x==y*y:
        ans = 'Yes'
        break
print(ans)
Buggy code:
import math

a,b=(map(int,input().split()))
num=str(a)+str(b)
ans=int(math.sqrt(int(num)))
print(ans if ans*ans==int(num) else"No")

Fixed code:
import math

a,b=(map(int,input().split()))
num=str(a)+str(b)
ans=int(math.sqrt(int(num)))
print("Yes" if ans*ans==int(num) else"No")
Buggy code:
A, B = map(int, input().split())
num = int(A+B)
result = "Yes" if num**0.5 == int(num**0.5) else "No"
print(result)

Fixed code:
A, B = input().split()
num = (int(A+B))**0.5
result = "Yes" if num.is_integer() else "No"
print(result)
Buggy code:
a,b = map(int,input().split())
N = int(str(a) + str(b))
import math
sqrtn = math.sqrt(N)
print("Yes") if sqrtn*sqrtn == N else print("No")

Fixed code:
a,b = map(int,input().split())
N = int(str(a) + str(b))
import math
sqrtn = int(math.sqrt(N))
print("Yes") if sqrtn*sqrtn == N else print("No")
Buggy code:
a,b=input().split()
print "Yes" if float.is_integer(math.sqrt(int(a+b))) else "No"

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

Fixed code:
a, b = input().split()
c = int(a+b)
if c == int((c**0.5))**2:
    print("Yes")
else:
    print("No")
Buggy code:
a, b = input().split()
ab = int(a)*10**(len(b)) + int(b)

judge = 0
i = 1

while judge == 0:
    if i**2 == ab:
        judge = 1
        break
    i += 1

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

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

judge = 0
i = min(int(a), int(b))

while judge == 0:
    if i**2 == ab:
        judge = 1
        break
    i += 1
    if i**2 > ab:
        break

if judge == 1:
    print("Yes")
else:
    print("No")
Buggy code:
c=int(input.replace(" ",""))
if c**0.5 % 1 !=0:
  print("No")
else:
  print("Yes")

Fixed code:
c=int(input().replace(" ",""))
if c**0.5 % 1 !=0:
  print("No")
else:
  print("Yes")
Buggy code:
# coding: utf-8
S = int(input().replace(' ', ''))
print(['No', 'Yes'][if S == int(S ** 0.5) ** 2])

Fixed code:
# coding: utf-8
S = int(input().replace(' ', ''))
print(['No', 'Yes'][S == int(S ** 0.5) ** 2])
Buggy code:
abstr = input().split()
ab = int(abstr[0]+abstr[1])

for i in range(400):
    if i**==ab:
        print('Yes')

else:
    print('No')


Fixed code:
abstr = input().split()
ab = abstr[0]+abstr[1]

for i in range(400):
    if i**2==int(ab):
        print('Yes')
        break

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

Fixed code:
a, b = map(str, input().split())
num = int(a + b)
num1 = int(num ** 0.5)
num2 = num1 * num1
if num == num2:
    print("Yes")
else:
    print("No")
Buggy code:
import math
a, b = input().split()
c = int(a + b)
sqrtc = math.sqrt(c)
if sqrtc - round(sqrtc) <= 1/(2**64):
    print('Yes')
else:
    print('No')

Fixed code:
import math
a, b = input().split()
c = int(a + b)
sqrtc = math.sqrt(c)
if abs(sqrtc - round(sqrtc)) <= 1/(2**64):
    print('Yes')
else:
    print('No')
Buggy code:
A, B = input().split()
N = int(A + B)
print(N)
if (N**0.5) % 1:
    print("No")
else:
    print("Yes")


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

Fixed code:
a, b = input().split()
n = int(a + b)
if (n**0.5).is_integer():
    print("Yes")
else:
    print("No")
Buggy code:
import math

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

r = round(math.sqrt(ab))
print(r if r**2 == ab else 'No')


Fixed code:
import math

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

r = round(math.sqrt(ab))
print('Yes' if r**2 == ab else 'No')
Buggy code:
a,b=input().split();print('Yes' if int(a+b)**0.5.is_integer() else 'No')

Fixed code:
a,b=input().split()
x=int(a+b)**0.5
print('Yes' if x.is_integer() else 'No')
Buggy code:
a, b = input().split()

import math
c = math.sqrt(int(a + b))
ok = c.is_instance(c, int)

if ok:
  print("Yes")
else:
  print("No")

Fixed code:
a, b = input().split()
 
import math
c = math.sqrt(int(a + b))
ok = c.is_integer()
 
if ok:
  print("Yes")
else:
  print("No")
Buggy code:
import math
def py():
    print("Yes")
def pn():
    print("No")
def iin():
    x = int(input())
    return x

neko = 0
nya = 0
nuko = 0
a,b = input().split()
neko = int(a + b)
for i in range(100):
    if i*i == neko:
        print(i)
        nya = 1
        break

if(nya == 0):
    pn()

Fixed code:
import math
def py():
    print("Yes")
def pn():
    print("No")
def iin():
    x = int(input())
    return x

neko = 0
nya = 0
nuko = 0
a,b = input().split()
neko = int(a + b)
for i in range(1000):
    if i*i == neko:
        py()
        nya = 1
        break

if(nya == 0):
    pn()
Buggy code:
a,b=map(str,input().split())
n=int(a+b)
m==n**0.5
if int(m)-m==0:
  print('Yes')
else:
  print('No')


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

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

Fixed code:
a, b = map(int,input().split())
if str(int(str(a) + str(b))**0.5).split(".")[1:][0] == "0":
    print("Yes")
else:
    print("No")
Buggy code:
"""
author : halo2halo
date : 24, Jan, 2020
"""

import sys
import itertools

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N, A = readline().decode('utf8').split()
S = int(N + A)

print('Yes' if S == S ** .5 * S ** .5 else 'No')


Fixed code:
"""
author : halo2halo
date : 24, Jan, 2020
"""

import sys
import itertools

# import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

N, A = readline().decode('utf8').split()
S = int(N + A)


print('Yes' if S == int(S ** .5) * int(S ** .5) else 'No')
Buggy code:
a, b = map(int,input().split())
c = (a,b)
if c == ((c**.5)**2):
  print("Yes")
else:
  print("No")

Fixed code:
a, b = map(str,input().split())
c = int(a+b)
if c == int(c**.5)**2:
  print("Yes")
else:
  print("No")
Buggy code:
import math
a,b = map(int,input().split())
c = a*10+b
if c == (math.sqrt(c))**2:
  print("Yes")
else:
  print("No")

Fixed code:
import math
a,b=input().split()
c = int(a+b)
if int(math.sqrt(c))**2==c:
    print('Yes')
else:
    print('No')
Buggy code:
# input
A = int(input().replace(" ",""))

# calc
if((A**.5)**2 == A):
  print("Yes")
else:
  print("No")

Fixed code:
# input
A = int(input().replace(" ",""))

# calc
if(round(A**.5)**2 == A):
  print("Yes")
else:
  print("No")
Buggy code:
a=int(input().replace(" ",""))
for i in range(200):
  if i**2==a:
    print("Yes")
    break
  if i**2>a:
    print("No")
    break

Fixed code:
a=int(input().replace(" ",""))
for i in range(20000):
  if i**2==a:
    print("Yes")
    break
  if i**2>a:
    print("No")
    break
Buggy code:
a,b=int(input())
ans=0
if(b<10):
  ans=a*10+b
elif(b<100):
  ans=a*100+b
else:
  ans=a*1000+b
  
  
n=int(1+ans**0.5)
flag=0
for i in range(n):
  if(i**2==ans):
    flag=1
    break
    
if(flag==1):
  print("Yes")
else:
  print("No")

Fixed code:
a,b=map(int,input().split())
ans=0
if(b<10):
  ans=a*10+b
elif(b<100):
  ans=a*100+b
else:
  ans=a*1000+b
  
  
n=int(1+ans**0.5)
flag=0
for i in range(n):
  if(i**2==ans):
    flag=1
    break
    
if(flag==1):
  print("Yes")
else:
  print("No")
Buggy code:
import os
import sys
from math import *

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

M = a * 10 * len(str(b)) + b

if int(sqrt(M)) * int(sqrt(M)) == M:
    print('Yes')
else:
    print('No')

Fixed code:
import os
import sys
from math import *

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

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

if int(sqrt(M)) * int(sqrt(M)) == M:
    print('Yes')
else:
    print('No')
Buggy code:
i = int(input().replace' ',''))
if i == i ** 0.5 * 2
    print("Yes")
else:
    print("No")

Fixed code:
i = int(input().replace(' ',''))
if i == int(i ** 0.5) ** 2:
    print("Yes")
else:
    print("No")
Buggy code:
a, b = map(str, input().split())
ab = int(a+b)
print(ab)
flag = False
for i in range(1000):
  if i**2 == ab:
    flag = True
if flag:
  print("Yes")
else:
  print("No")

Fixed code:
a, b = map(str, input().split())
ab = int(a+b)
flag = False
for i in range(1000):
  if i**2 == ab:
    flag = True
if flag:
  print("Yes")
else:
  print("No")
Buggy code:
a=input()

a=a.replace(' ','')
a=int(a)
print(a)

flag=False

for i in range(100):
    if i*i == a:
        flag=True

if flag:
    print('Yes')
else:
    print('No')
        


Fixed code:
a=input()

a=a.replace(' ','')
a=int(a)

flag=False

for i in range(350):
    if i*i == a:
        flag=True

if flag:
    print('Yes')
else:
    print('No')
Buggy code:
n = int(input().replace(' ', ''))
for i in range(100100):
  if i*i == n:
    print('Yes')
else:
  print('No')

Fixed code:
n = int(input().replace(' ', ''))
for i in range(100100):
  if i*i == n:
    print('Yes')
    break
else:
  print('No')
Buggy code:
a,b=input().split()
a+=b
a=int(a)
if a**(0.5)==int(a**(0.5)):
    print("Yes")
else:
    print("N0")

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

Fixed code:
import math
s = input().rstrip()
s = s.replace(' ', '')
s = int(s)
if math.floor(math.sqrt(s)) ** 2 == s:
  print('Yes')
else:
  print('No')
Buggy code:
import math 

a,b = map(int,input().split())
ans = math.sqrt(int(str(a) + str(b)))
if ans.isinteger() == True:
  print("Yes")
else:
  print("No")

Fixed code:
import math

a,b = map(int,input().split())
ans = math.sqrt(int(str(a) + str(b)))
if ans.is_integer() == True:
  print("Yes")
else:
  print("No")
Buggy code:
a, b = input().split()

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

if c**2 == int(a+b):
  print('Yes')
else:
  print('No')

Fixed code:
a,b=input().split()
x=int(a+b)
if int(x**0.5)**2==x:
    print('Yes')
else:
    print('No')
Buggy code:
a, b = map(str, input().split())
c = int(a+b)
if float.is_integer(math.sqrt(c)) == True:
    print('Yes')
else:
    print('No')

Fixed code:
import math
a, b = map(str, input().split())
c = int(a+b)
if float.is_integer(math.sqrt(c)) == True:
    print('Yes')
else:
    print('No')
Buggy code:
import math
num = int(input().replace(" ", ""))
squreRoot = math.sqrt(num)
return 'Yes' if squreRoot == int(squreRoot) else 'No'

Fixed code:
import math
num = int(input().replace(" ", ""))
squreRoot = math.sqrt(num)
print('Yes' if squreRoot == int(squreRoot) else 'No')
Buggy code:
a,b=input().split(' ')
N=a+b
N = int(N)
print(N)
for i in range(316):
	if (i*i) == N:
		print('Yes')
		quit()
print('No')

Fixed code:
a,b=input().split(' ')
N=a+b
N = int(N)
for i in range(316):
	if (i*i) == N:
		print('Yes')
		quit()
print('No')
Buggy code:
import math

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

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

Fixed code:
import math

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

if c == int(math.sqrt(c)) ** 2:
    print('Yes')
else:
    print('No')
Buggy code:
import math
import numpy as np

a, b = map(int, input().split())
c = (int(str(a) + str(b)))
d = math.sqrt(c)

z = np.rint(d)

if z**2== c:
    print("Yes")
    print(c)
else:
    print("No")
    print(c)

Fixed code:
import math
import numpy as np

a, b = map(int, input().split())
c = (int(str(a) + str(b)))
d = math.sqrt(c)

z = np.rint(d)

if z**2== c:
    print("Yes")
else:
    print("No")
Buggy code:
a,b = map(str,input().split())

flag = 0
for i in range(110):
    print(i*i)
    if i*i == int(a+b):
        flag = 1
    
if flag == 0:
    print("No")
else:
    print("Yes")

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

flag = 0
for i in range(1000):
    if i*i == int(a+b):
        flag = 1
    
if flag == 0:
    print("No")
else:
    print("Yes")
Buggy code:
n= int("".join(num.split()))

import math
if math.sqrt(n) % 1 == 0:
    print("Yes")
else:
    print("No")

Fixed code:
n= int("".join(input().split()))

import math
if math.sqrt(n) % 1 == 0:
    print("Yes")
else:
    print("No")
Buggy code:
import math
a, b = map(str, input().split())
num = int(a + b)
ans = math.sqrt(num)
if ans ** 2 == num:
    print("Yes")
else:
    print("No")

Fixed code:
import math
a, b = map(str, input().split())
num = int(a + b)
ans = int(math.sqrt(num))
if ans ** 2 == num:
    print("Yes")
else:
    print("No")
Buggy code:
a, b = (int(i) for i in input().split())
N = int(str(a)+str(b))
for i in range(317):
	if i*i == N:
		print("Yes")
		exit(0)
	elif i*i > N:
		print("No")
exit(0)

Fixed code:
a, b = (int(i) for i in input().split())
N = int(str(a)+str(b))
for i in range(317):
	if i*i == N:
		print("Yes")
		exit(0)
	elif i*i > N:
		break
print("No")
exit(0)
Buggy code:
a, b = map(str, input().split())
res = int(a+b)
ans = "No"
for i in range(res**0.5):
    if i**2 == res:
        ans = "Yes"
        break
print(ans)

Fixed code:
a, b = map(str, input().split())
res = int(a+b)
ans = "No"
for i in range(int(res**0.5)+1):
    if i**2 == res:
        ans = "Yes"
        break
print(ans)
Buggy code:
import math
a,b = map(int,input().split())
n = len(b)

c = a*n+b
d = int(math.sqrt(c))
if d**2 == c:
  print("Yes")
else:
  print("No")





Fixed code:
import math
a,b = map(int,input().split())
n = len(str(b))
     
c = a*(10**n)+b
d = int(math.sqrt(c))
if d**2 == c:
  print("Yes")
else:
  print("No")
Buggy code:
a,b = map(str,input().split())
c = int(a+b)
#print(float(c))
import math
#print(math.sqrt(c))
if float(c) == math.sqrt(c)**2:
  print('Yes')
else:
  print('No')

Fixed code:
a,b = map(str,input().split())
c = int(a+b)
#print(float(c))
import math
#print(math.sqrt(c))
if c == int(math.sqrt(c))**2:
  print('Yes')
else:
  print('No')
Buggy code:
import math
a, b = input().split()
c = a + b
d = int(c)
e = math.sqrt(d) // 1
if d == e ** e:
    print("Yes")
else:
    print("No")


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

d = input()
n1, n2 = d.split(" ")

num = n1 + n2
square = math.sqrt(int(num))
if square.is_integer():
  print("Yex")
else:
  print("No")

Fixed code:
import math

d = input()
n1, n2 = d.split(" ")

num = n1 + n2
square = math.sqrt(int(num))
if square.is_integer():
  print("Yes")
else:
  print("No")
Buggy code:
import math

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

c = a + b
d = int(c)

print(d)

e = math.sqrt(d)
# e = int(e)

print(e)

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


Fixed code:
import math

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

c = a + b
d = int(c)

e = math.sqrt(d)

if e.is_integer() == True:
  print("Yes")
else:
  print("No")
Buggy code:
b, c = map(int, input().split())
x=int(b + c)
import math
sqrtx = math.sqrt(x)
flsqrtx = math.floor(sqrtx)
if sqrtx == flsqrtx :
  print("Yes")
else:
  print("No")

Fixed code:
b, c = map(str, input().split())
x=int(b + c)
import math
sqrtx = math.sqrt(x)
flsqrtx = math.floor(sqrtx)
if sqrtx == flsqrtx :
  print("Yes")
else:
  print("No")