Harryxun/GPT-100-sft-dataset huggingface dataset:
Problem p03557 (python)

Fixed submission:
n = int(input())
a = [0] + list(map(int, input().split())) #index alliginment
b = [0] + list(map(int, input().split()))
c = [0] + list(map(int, input().split()))
a.sort()
b.sort()
c.sort()
bp, cp = 1, 1
cana, canb = [0], [0] # a[i]に対して条件を満たすbの要素数と
                      # b[i]に対して条件を満たすcの要素数を保管
sumb = [0] # canbの末尾からn個の累積和
ans = 0
for i in range(1,n+1): # aの1~nまで
    if bp != n+1:
        while b[bp] <= a[i] and bp != n+1:
            bp += 1
            if bp == n+1:
                break
    appending = n+1-bp if bp != n+1 else 0
    cana.append(appending)
for i in range(1,n+1):
    if cp != n+1:
        while c[cp] <= b[i] and cp != n+1:
            cp += 1
            if cp == n+1:
                break
    appending = n+1-cp if cp != n+1 else 0
    canb.append(appending)
for i in range(1,n+1):
    sumb.append(sumb[-1]+canb[-i])
for i in range(1,n+1):
    ans += sumb[cana[i]]
print(ans)

Buggy submission (verdict: Runtime Error):
n = int(input())
a = [0] + list(map(int, input().split())) #index alliginment
b = [0] + list(map(int, input().split()))
c = [0] + list(map(int, input().split()))
a.sort()
b.sort()
c.sort()
bp, cp = 1, 1
cana, canb = [0], [0] # a[i]に対して条件を満たすbの要素数と
                      # b[i]に対して条件を満たすcの要素数を保管
sumb = [0] # canbの末尾からn個の累積和
ans = 0
for i in range(1,n+1): # aの1~nまで
    while b[bp] <= a[i] and bp != n+1:
        bp += 1
    appending = n+1-bp if bp != n+1 else 0
    cana.append(appending)
for i in range(1,n+1):
    while c[cp] <= b[i] and cp != n+1:
        cp += 1
    appending = n+1-cp if cp != n+1 else 0
    canb.append(appending)
for i in range(1,n+1):
    sumb.append(sumb[-1]+canb[-i])
for i in range(1,n+1):
    ans += sumb[cana[i]]
print(ans)
Problem p03645 (python)

Fixed submission:
n, m = map(int,input().split())
s = [list(map(int,input().split())) for i in range(m)]
nl = [[0,0] for i in range(n+1)]
for a,b in s:
    if a == 1: nl[b][0] = 1
    if b == n: nl[a][1] = 1
ans = "POSSIBLE" if [1,1] in nl else "IMPOSSIBLE"
print(ans)

Buggy submission (verdict: Runtime Error):
n, m = map(int,input().split())
s = [list(map(int,input().split())) for i in range(m)]
nl = [[] for i in range(n+1)]
for a,b in s: nl[a].append(b
can = False
for i in range(2,n):
    if i in nl[1] and n in nl[i]: can = True 
ans = "POSSIBLE" if can else "IMPOSSIBLE"
print(ans)
Problem p02981 (python)

Fixed submission:
n,a,b=map(int,input().split())
print(min(b,a*n))

Buggy submission (verdict: Runtime Error):
n,a,b=int(input().split())
print(min(a*n,b))

Buggy submission (verdict: Runtime Error):
a,b,c=int(input().split())
print(min(a*n,b))
Problem p03210 (python)

Fixed submission:
x = int(input())
if x == 7 or x == 5 or x == 3:
    print('YES')
else:
    print('NO')

Buggy submission (verdict: Runtime Error):
x = int(intput())
if x == 7 or x == 5 or x == 3:
    print('YES')
else:
    print('NO')
Problem p02885 (python)

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

m=a-2*b

if m>=0:
  print(m)
else:
  print(0)

Buggy submission (verdict: Runtime Error):
a,b = map(int, input().split())

m=a-2b

Buggy submission (verdict: Runtime Error):
a,b=map(int, input().split())

m=a-2b

if m>=0:
  print(m)
else:
  print(0)

Buggy submission (verdict: Runtime Error):
a,b=map(int, input().split())

m=a-2b

if m>=0:
  print(m)
else:
  print(0)
Problem p03079 (python)

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

if a*b*c==a*a*a and a+b+c==3*a:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
a,b,c=map(int,input().split())

if a*b*c==a*a*a and a+b+c==3a:
  print("Yes")
else:
  print("No")
Problem p03101 (python)

Fixed submission:
A,B=map(int,input().split())
a,b=map(int,input().split())

x=A-a
y=B-b

print(int(x*y))

Buggy submission (verdict: Runtime Error):
A,B=map(int,input().split())
a,b=map(int,input().split())

A-a=m
B-b=n

print(int(m*n))

Buggy submission (verdict: Runtime Error):
A,B=map(int,input().split())
a,b=map(int,input().split())

A-a=x
B-b=y

print(int(x*y))
Problem p03125 (python)

Fixed submission:
a,b=map(int,input().split())
     
if b%a==0:
  print(int(b+a))
else:
  print(int(b-a))

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().print())

if b%a==0:
  print(int(b+a))
else:
  print(int(b-a))
Problem p03206 (python)

Fixed submission:
d=int(input())

if d==25:
  print("Christmas")
elif d==24:
  print("Christmas Eve")
elif d==23:
  print("Christmas Eve Eve")  
else:
  print("Christmas Eve Eve Eve")

Buggy submission (verdict: Runtime Error):
d=int(input())

if d=25:
  print("Christmas")
elif d=24:
  print("Christmas Eve")
elif d=23:
  print("Christmas Eve Eve")  
else:
  print("Christmas Eve Eve Eve")

Buggy submission (verdict: Runtime Error):
d=int(input())

if d=25:
  print("Christmas")
elif d=24:
  print("Christmas Eve")
elif d=23:
  print("Christmas Eve Eve")  
elif d=22:
  print("Christmas Eve Eve Eve")

Buggy submission (verdict: Runtime Error):
d=int(input())

if d=25:
  print("Christmas")
elif d=24:
  print("Christmas Eve")
elif d=23:
  print("Christmas Eve Eve")  
else:
  print("Christmas Eve Eve Eve")

Buggy submission (verdict: Runtime Error):
d=int(input())

if d=25:
  print("Christmas")
elif d=24:
  print("Christmas Eve")
elif d=23:
  print("Christmas Eve Eve")  
elif d=22:
  print("Christmas Eve Eve Eve")
Problem p03238 (python)

Fixed submission:
n=int(input())

if n==1:
  print("Hello World")
else:
  a=int(input())
  b=int(input())
  print(int(a+b))

Buggy submission (verdict: Runtime Error):
n=int(input())

if n==1:
  print("Hello World")
else:
  a,b=map(int,input().split())
  print(int(a+b))
Problem p03264 (python)

Fixed submission:
k=int(input())

m=k//2

if k%2==0:
  print(int(k*k/4))
else:
  print(int(m*(m+1)))

Buggy submission (verdict: Runtime Error):
k=int(input())

m=k//2

if k%2==0:
print(int((k/2)**2))
else:
  print(int(m*(m+1)))
Problem p03280 (python)

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

m=a*b-a-b+1

print(int(m))

Buggy submission (verdict: Runtime Error):
a,b=map(int input().split())

print(a*b-a-b+1)

Buggy submission (verdict: Runtime Error):
a,b=map(int input().split())

print(a*b-(a+b-1))

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split)
print(int(a*b-a-b+1))
Problem p03324 (python)

Fixed submission:
d,n=map(int,input().split())

if d==0 and n!=100:
  print(int(n))
elif d==0 and n==100:
  print(int(101))
  
elif d!=0 and n!=100:
  k=100**d
  print(int(k*n))
else:
  k=100**d
  print(int(k*101))

Buggy submission (verdict: Runtime Error):
d,n=map(int,input())

if d==0:
  print(n)

else:
  k=100**d
  print(k*n)
Problem p03385 (python)

Fixed submission:
s=input()

m=sorted(s)
k=''.join(m)

if k=="abc" :
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
s=input()

m=sort(s)
k=''.join(m)

if k=="abc" :
  print("Yes")
else:
  print("No")
Problem p03407 (python)

Fixed submission:
a,b,c=map(int, input().split())
     
if a+b>=c:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
    a,b,c=map(int, input().split())
     
    if a+b>=c:
      print("Yes")
    else:
      print("No")

Buggy submission (verdict: Runtime Error):
a,b,c=map(int, input().split)

if a+b>=c:
  print("Yes")
else:
  print("No")
Problem p03415 (python)

Fixed submission:
a=input()
b=input()
c=input()

print(a[0]+b[1]+c[2])

Buggy submission (verdict: Runtime Error):
a,b,c=map(input().split())

print(a[0]+b[1]+c[2])

Buggy submission (verdict: Runtime Error):
a,b,c=(str, input().split())

print(a[0]+b[1]+c[2])
Problem p03470 (python)

Fixed submission:
n=int(input())

D=[]

for i in range(n):
  d=int(input())
  D.append(d)

c=set(D)

  
print(len(c))

Buggy submission (verdict: Runtime Error):
n=int(input())

D=[]

for i in range(n):
  d=int(input())
  D.append(d)

print(collections.Counter(D))
Problem p03493 (python)

Fixed submission:
s=input()

print(s.count("1"))

Buggy submission (verdict: Runtime Error):
print(count("1"))
Problem p03547 (python)

Fixed submission:
x,y=input().split()

if x>y:
  print(">")
elif y>x:
  print("<")
else:
  print("=")

Buggy submission (verdict: Runtime Error):
X,Y=map(str,input().split())


"A"=10
"B"=11
"C"=12
"D"=13
"E"=14
"F"=15

if X>Y:
  print(">")
elif X=Y:
  print("=")
else:
  print("<")
Problem p03563 (python)

Fixed submission:
a=int(input())
b=int(input())


print(int(2*b-a))

Buggy submission (verdict: Runtime Error):
r=input(int())
g=input(int())

print(2*g-r)

Buggy submission (verdict: Runtime Error):
a,b=map(int, input().split())

print(int(2*b-a))
Problem p03564 (python)

Fixed submission:
n=int(input())
k=int(input())

a=1

for i  in range(n):
  if a >=k:
    a+=k
  else:
    a=2*a

print(a)

Buggy submission (verdict: Runtime Error):
n=int(input())
k=int(input())

a=1

for i range(n):
  if a >=k:
    a=+k
  else:
    a=2*a

print(a)

Buggy submission (verdict: Runtime Error):
n=int(input())
k=int(input())

a=1

for i range(n):
  if a >=k:
    a+=k
  else:
    a+=a

print(a)

Buggy submission (verdict: Runtime Error):
n=int(input())
k=int(input())

a=1

for i range(n):
  if a >=k:
    a=+k
  else:
    a=+a

print(a)
Problem p03573 (python)

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

if a-b==0: 
  print(int(c))
elif b-c==0:
  print(int(a))
elif c-a==0:
  print(int(b))

Buggy submission (verdict: Runtime Error):
a,b,c=map(int, input().split())

if a-b==0 
  print(int(c))
elif b-c==0:
  print(int(a))
elif c-a==0:
  print(int(b))
Problem p03605 (python)

Fixed submission:
n=int(input())

m=n%10
k=n//10

if m==9 or k==9:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
n = int(input())

a = n//10

b = n-a*10

if a==9 or b==9:
  print("Yes")

else:
  pront("No")
Problem p03609 (python)

Fixed submission:
x,t=map(int, input().split())

if x-t>0:
  print(int(x-t))
else:
  print(int(0))

Buggy submission (verdict: Runtime Error):
x,t=map(int input().split())

A=x-t

if A>=0:
  print(A)
else:
  print(0)
Problem p03657 (python)

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

if (a+b)%3==0 or a%3==0 or b%3==0: 
  print("Possible")
else:
  print("Impossible")

Buggy submission (verdict: Runtime Error):
a,b = map(int, input().split())

a+b=k

a%3=m

b%3=n

k%3=r

if m==0 or n==0 or r==0:
  print("Possible")
else:
  print("Impossible")

Buggy submission (verdict: Runtime Error):
a,b = map(int, input().split())

a+b=k

a%3=m

b%3=n

k%3=r

if m==0 or n==0 or r==0:
  print("Possible")
else:
  print("Impossible")

Buggy submission (verdict: Runtime Error):
a,b = (map(int, input().split()))

a+b=k

a//3=m

b//3=n

k//3=r

if m==0 or n==0 or r==0:
  print("Possible")
else:
  print("Impossible")

Buggy submission (verdict: Runtime Error):
a,b = (map(int, input().split()))

a+b=k

a//3=m

b//3=n

k//3=r

if m==0 or n==0 or r==0:
  print("Possible")
else:
  print("Impossible")

Buggy submission (verdict: Runtime Error):
a,b=map(int, input().split())

if (a+b)%3==0: 
  print("Possible")
elif:
  print("Impossible")
Problem p03679 (python)

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

if b>=a+x+1:
  print("dangerous")
elif  b<=a+x and a<b:
  print("safe")
else:
  print("delicious")

Buggy submission (verdict: Runtime Error):
a,x,b=map(int,input().split())

if b>=a+x+1:
  print("dangerous")
elif  b<=a+x and a<b:
  print("safe")
else:
  print(delicious)
Problem p03698 (python)

Fixed submission:
s=input()

k=list(s)
m=list(set(s))

if len(k)==len(m):
  print("yes")
else:
  print("no")

Buggy submission (verdict: Runtime Error):
s=input()

k=list(s)
m=list(set(l))

if len(k)==len(m):
  print("yes")
else:
  print("no")
Problem p03738 (python)

Fixed submission:
a=int(input())
b=int(input())

if a>b:
  print("GREATER")
elif a==b:
  print("EQUAL")
else:
  print("LESS")

Buggy submission (verdict: Runtime Error):
A=int(input())
B=int(input())

if A=B:
  print("EQUAL")
elif A>B:
  print("GREATER")
else:
  print("LESS")

Buggy submission (verdict: Runtime Error):
A=int(input())
B=int(input())

if A=B:
  print("EQUAL")
elif A>B:
  print("GREATER")
else:
  print("LESS")
Problem p03773 (python)

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

m=a+b

if m>=24:
  print(int(m-24))
else:
  print(int(m))

Buggy submission (verdict: Runtime Error):
a, b = map(int, input().split())
  ans = a+b
     
if ans >=24:
  ans = ans-24
      
print(ans)

Buggy submission (verdict: Runtime Error):
a, b = map(int, input().split())
  ans=a+b
     
if ans>=24:
  ans=ans-24
      
print(ans)

Buggy submission (verdict: Runtime Error):
    a, b = map(int, input().split())
     
    ans=a+b
     
    if ans>=24 :
      ans=ans-24
      
    print(ans)

Buggy submission (verdict: Runtime Error):
a, b = map(int, input().split())

ans=a+b

if ans>=24
  ans=ans-24
  
print(ans)
Problem p03778 (python)

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

if a==b:
  print(int(0))
elif a>b:
  if b+w>=a:
    print(int(0))
  else:
    print(int(a-b-w))
else:
   if a+w>=b:
    print(int(0))
   else:
    print(int(b-a-w))

Buggy submission (verdict: Runtime Error):
w,a,b=map(int,input().split())

if a=b:
  print(int(0))
elif a>b:
  if b+w>=a:
    print(int(0))
  else:
    print(int(a-b-w))
else:
   if a+w>=b:
    print(int(0))
   else:
    print(int(b-a-w))

Buggy submission (verdict: Runtime Error):
w,a,b=map(int,input().split())

if a=b:
  print(int(0))
elif a>b:
  if b+w>=a:
    print(int(0))
  else:
    print(int(a-b-w))
else:
   if a+w>=b:
    print(int(0))
  else:
    print(int(b-a-w))

Buggy submission (verdict: Runtime Error):
w,a,b=map(int,input().split())

if a=b:
  print(0)
elif a>b:
  if b+w>=a:
    print(0)
  else:
    print(int(a-b-w))
else:
   if a+w>=b:
    print(0)
  else:
    print(int(b-a-w))
Problem p03795 (python)

Fixed submission:
n=int(input())

k=n//15

print(int(800*n-200*k))

Buggy submission (verdict: Runtime Error):
n = input(int())

N = n//15

print(n*800-200*N)

Buggy submission (verdict: Runtime Error):
n=int(input())

k=n//15

print(int(800n-200k))
Problem p03844 (python)

Fixed submission:
print(eval(input()))

Buggy submission (verdict: Runtime Error):
print(eval(input().split())
Problem p03919 (python)

Fixed submission:
h,w = map(int,input().split())
s = [input().split() for _ in range(h)]
for i in range(h):
    for j in range(w):
        if s[i][j] == 'snuke':
            print(chr(ord('A') + j) + str(1 + i))

Buggy submission (verdict: Runtime Error):
あ」
Problem p03943 (python)

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

if a+b==c or b+c==a or c+a==b:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
a,b,c=map(int, input().split())

if a-b==0 
  print(int(c))
elif b-c==0:
  print(int(a))
elif c-a==0:
  print(int(b))

Buggy submission (verdict: Runtime Error):
a,b,c=map(int, input().split())

if a+b=c or b+c=a or c+a=b:
  print("YES")
else:
  print("NO")
Problem p03962 (python)

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

l=[a,b,c]

print(len(set(l)))

Buggy submission (verdict: Runtime Error):
i = [int(input()) for i in range(3)]

print(len(set(i)))

Buggy submission (verdict: Runtime Error):
l=list(map(int,input().split()))
c = collections.Counter(l)
print(c)
Problem p03997 (python)

Fixed submission:
a=int(input())
b=int(input())
h=int(input())

S=(a+b)*h/2

print(int(S))

Buggy submission (verdict: Runtime Error):
a = int(input())
b = int(input())
h = int(input())

print(int((a+b*h/2))
Problem p04011 (python)

Fixed submission:
n=int(input())
k=int(input())
x=int(input())
y=int(input())
if n<=k:
    sum=n*x
else:
    sum=k*x+(n-k)*y
print(sum)

Buggy submission (verdict: Runtime Error):
    n=int(input())
    k=int(input())
    x=int(input())
    y=int(input())
    if n<=k:
        ans=n*x
    else:
        sum=k*x+(n-k)*y
    print(sum)

Buggy submission (verdict: Runtime Error):
if n > k:
  print(int(k*x+(n-k)*y))
else:  
  print(int(n*x))

Buggy submission (verdict: Runtime Error):
n,k,x,y=map(int, input().split())
if n > k:
  print(int(k*x+(n-k)*y))
else:  
  print(int(n*x))

Buggy submission (verdict: Runtime Error):
n,k,x,y=map(int, input().split())

if n > k:
  print(int(k*x+(n-k)*y))
else:  
  print(int(n*x))

Buggy submission (verdict: Runtime Error):
n,k,x,y=map(int,input().split())

Buggy submission (verdict: Runtime Error):
n,k,x,y=map(int,input().split())

if n > k:
  print(int(k*x+(n-k)*y))
else:  
  print(int(n*x))

Buggy submission (verdict: Runtime Error):
n,k,x,y=map(int,input().split())

if n > k:
  print(int(k*10000+(n-k)*9000))
else:  
  print(int(n*10000)
Problem p04029 (python)

Fixed submission:
n=int(input())
     
sum=n*(n+1)/2
     
print(int(sum))

Buggy submission (verdict: Runtime Error):
a = input(int())

print(int(a*(a+1)/2))

Buggy submission (verdict: Runtime Error):
a = input(int())

print(a*(a+1)/2)

Buggy submission (verdict: Runtime Error):
n=input(int())

print(int(n*(n+1)/2))

Buggy submission (verdict: Runtime Error):
print(N*(N+1)/2)
Problem p04030 (python)

Fixed submission:
s=input()

k=""

for i in s:
  if i!="B":
    k += i
  else:
    k=k[:-1]
print(k)

Buggy submission (verdict: Runtime Error):
s=input()

k=""

m=len(s)

for i in range(m):
  if i!="B":
    k+=i
  else:
    k[:-1]
print(k)
Problem p04043 (python)

Fixed submission:
a=input().split()
if a.count("5")==2 and a.count("7")==1:
   print("YES")
else:
   print("NO")

Buggy submission (verdict: Runtime Error):
n=input().split()
if a.count("5")==2 and a.count("7")==1:
   print("YES")
else:
   print("NO")

Buggy submission (verdict: Runtime Error):
a=list(map(int,input().split()))
     
    if a.count("5")==2 and a.count("7")==1:
      print("YES")
    else:
      print("NO")

Buggy submission (verdict: Runtime Error):
a =map(int, [input() for i in range(3)])

if a.count("5")==2 and a.count("7")==1:
  print("YES")
else:
  print("NO")

Buggy submission (verdict: Runtime Error):
    if input().count("5")==2 and input().count("7")==1:
                  print("YES")
    else:
                  print("NO")

Buggy submission (verdict: Runtime Error):
if input().count("5")==2,input().count("7")==1:
              print("YES")
else:
              print("NO")

Buggy submission (verdict: Runtime Error):
    a,b,c=map(int, [input() for i in range(3)]
    if input().count("5")==2,input().count("7")==1:
              print("YES")
    else:
              print("NO")

Buggy submission (verdict: Runtime Error):
a,b,c=map(int, [input() for i in range(3)]
if input().count("5")==2,input().count("7")==1:
          print("YES")
else
          print("NO")
Problem p04044 (python)

Fixed submission:
n,l=map(int,input().split())

k=[]

for i in range(n):
  s=input()
  k.append(s)

x=sorted(k)
z="".join(x)

print(z)

Buggy submission (verdict: Runtime Error):
n,l=map(int,input().split())

k=[]

for i in range(n):
  s=input()
  k.append(s)

x=sort(k)
z="".join(x)

print(z)
Problem p02789 (python)

Fixed submission:
a,b = input().split()
if a == b:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
,b = input().split()
if a == b:
  print('Yes')
else:
  print('No')
Problem p03455 (python)

Fixed submission:
a, b = map(int, input().split())
if (a*b)%2==0:
  print('Even')
else:
  print('Odd')

Buggy submission (verdict: Runtime Error):
a = input()
b = input()
if (a*b) % 2 == 0:
  print('Even')
else:
  print('Odd')

Buggy submission (verdict: Runtime Error):
a = input()
b = input()
if (a*b) % 2 = 0:
  print('Even')
else:
  print('Odd')
Problem p03493 (python)

Fixed submission:
print(sum(map(int,input())))

Buggy submission (verdict: Runtime Error):
s1, s2, s3 = map(int, input().split())

i = 0
if s1 == 1:
  i++
if s2 == 1:
  i++
if s3 == 1:
  i++
  
print(i)
Problem p03494 (python)

Fixed submission:
import math
n = input()
a = list(map(int, input().split()))
ans = float("inf")
for i in a:
    ans = min(ans, len(bin(i)) - bin(i).rfind("1") - 1)
print(round(ans))

Buggy submission (verdict: Runtime Error):
n = input()
for n:
  a[n] = input()
Problem p04043 (python)

Fixed submission:
num = input().split(' ')
if num == ['5','7','5'] or num == ['7','5','5'] or num == ['5','5','7']:
    print('YES')
else:
    print('NO')

Buggy submission (verdict: Runtime Error):
num = input().split('')
if num == ['5', '7', '5'] or num == ['7', '5', '5'] or num == ['5', '5', '7']:
  print('YES')
else:
  print('NO')
Problem p04045 (python)

Fixed submission:
n,k = map(int,input().strip().split())
d = list(input().split())
for x in range(n,100000):
    for y in d:
        if y in str(x):
            break
    else:
        print(x)
        break

Buggy submission (verdict: Runtime Error):
n,k = map(int, input().strip().split())
d = list(input().split())


n,k = map(int,input().strip().split())
d = list(input().split())
for x in range(n,100000):
    for y in d:
        if y in str(x):
            break
    else:
        print(x)
        break
Problem p02789 (python)

Fixed submission:
a,b = map(int, input().split())
if a == b:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
a,b = map(int, input().split())
if a == b:
  print(Yes)
else:
  print(No)
Problem p02789 (python)

Fixed submission:
n, m = map(int, input().split())
if n == m:
    print('Yes')
else:
    print('No')

Buggy submission (verdict: Runtime Error):
N, M = map(int, input().split())
if N = M:
	print("Yes")
    else:
    	print("No")

Buggy submission (verdict: Runtime Error):
M, N = map(int, input().split())
if M = N:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
M, N = map(int, input().split())
for M:
  if M = N:
    print("Yes")
  else:
    print("No")
Problem p02789 (python)

Fixed submission:
test_passed, test_all_cnt  = input().split()
 
print("Yes" if test_passed == test_all_cnt else "No")

Buggy submission (verdict: Runtime Error):

test_passed = int(input())
test_all_cnt = int(input())


print("Yes" if test_passed == test_all_cnt else "No")

Buggy submission (verdict: Runtime Error):
import sys
 
if sys.argv[1] == sys.argv[2]:
  return "Yes"
 
return "No"

Buggy submission (verdict: Runtime Error):
import os

if os.argv[1] == os.argv[2]:
  return "Yes"

return "No"
Problem p02789 (python)

Fixed submission:
n,m = input().split()
 
if n == m:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
import sys

args = sys.argv

n = args[1]
m = args[2]

if n == m:
    print("yes")
else:
    print("no")

Buggy submission (verdict: Runtime Error):
import sys

args = sys.argv

n = args[1]
m = args[2]

if n == m:
    print("yes")
else:
    print("no")
Problem p02921 (python)

Fixed submission:
forecast =input()
real =input()
i = 0
atari =0
while  i < 3:
    if forecast[i] == real[i]:
        atari = atari+1
    i = i+1
    
print(atari)

Buggy submission (verdict: Runtime Error):
a = int(input())
b, c = map(int,input().split())
txt = input()
print(str(a+b+c)+" "+txt)
Problem p03470 (python)

Fixed submission:
n = int(input())
a = []
for _ in range(n):
  a.append(int(input()))
           
print(len(set(a)))

Buggy submission (verdict: Runtime Error):
n = int(input())
a = []
for _ in range(n):
  a.append(int(input())
           
print(len(set(a)))
Problem p03478 (python)

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

result = 0
for n in range(1, N + 1):
   sum_n = 0
   for i in str(n):
       sum_n += int(i)
   if a <= sum_n <= b:
       result += n
print(result)

Buggy submission (verdict: Runtime Error):
N = int(input())
a = int(input())
b = int(input())

result = 0
for n in range(1, N + 1):
   sum_n = 0
   for i in str(n):
       sum_n += int(i)
   if a <= sum_n <= b:
       result += n
print(result)