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

Fixed submission:
s = input()
m = []
for i in s:
  m.append(i)
m.sort()
for i in range(len(m)-1):
  if m[i] == m[i+1]:
    print('no')
    exit()
    
print('yes')

Buggy submission (verdict: Runtime Error):
s = input().split('')
s.sort()
for i in range(len(s)-1):
  if s[i+1] == s[i]:
    print('no')
    exit()
    
print('yes')

Buggy submission (verdict: Runtime Error):
s = input()
s.sort()
for i in range(len(s)-1):
  if s[i+1] == s[i]:
    print('no')
    
print('yes')
Problem p03816 (python)

Fixed submission:
n = int(input())
A = list(map(int,input().split()))
A.sort()

m = 0
cnt = 0
for i in A:
  if(m != i):
    m = i
    cnt += 1

if(cnt % 2 == 0):
  cnt -= 1
print(cnt)

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

m = 0
cnt = 0
for i in A:
  if(m != A[i]):
    m = A[i]
    cnt += 1

if(cnt % 2 == 0):
  cnt -= 1
print(cnt)
Problem p02713 (python)

Fixed submission:
from math import gcd

K = int(input())
out = 0
Count = [0]*K
gcds = [[0]*K for i in range(K)]

for i in range (1,K+1):
    for j in range(1,+K+1):
        value = gcd(i,j)
        gcds[i-1][j-1]=value
        Count[value-1]+=1

for i in range(1,K+1):
    for j in range(1,K+1):
        out +=gcds[i-1][j-1]*Count[j-1] #値*回数
        
print(out)

Buggy submission (verdict: Runtime Error):
from math import gcd
K=int(input())+1
sum=0
for a in range(1,K):
    for b in range(1,K):
        for c in range(1,K):
            gcd1 = int(gcd(a,b))
            gcd2 = int(gcd(b,c))
            gcd = int(gcd(gcd1,gcd2))

            sum = sum+gcd
print(sum)
Problem p02717 (python)

Fixed submission:
x,y,z = list(map(int,input().split()))
 
def swap(a,b):
    tmp = a
    a = b
    b = tmp
    return (a,b)
x,y = swap(x,y)
x,z = swap(x, z)
print(x,y,z)

Buggy submission (verdict: Runtime Error):
x,y,z = list(map(int,input().split()))
 
def swap(a,b):
    temp = a
    a = b
    b = tmp
    return (a,b)
 
x,y = swap(x,y)
x, z = swap(x, z)
print(x,y,z)
Problem p02755 (python)

Fixed submission:
a, b = [int(x) for x in input().split()]
 
if (b < a):
    tmp = b
    b = a
    a = tmp
 
 
x = 1
while True:
    if (int(x*0.08) == a and int(x*0.1) == b):
        print(x)
        break
    else:
        if (x > 1500):
            print(-1)
            break
        else:
            x += 1

Buggy submission (verdict: Runtime Error):
b = [int(x) for x in input().split()]
 
if (b < a):
    tmp = b
    b = a
    a = tmp
 
 
x = 1
while True:
    if (int(x*0.08) == a and int(x*0.1) == b):
        print(x)
        break
    else:
        if (x > 1500):
            print(-1)
            break
        else:
            x += 1

Buggy submission (verdict: Runtime Error):
b = [int(x) for x in input().split()]
 
if (b < a):
    tmp = b
    b = a
    a = tmp
 
 
x = 1
while True:
    if (int(x*0.08) == a and int(x*0.1) == b):
        print(x)
        break
    else:
    if (x > 1500):
            print(-1)
            break
    else:
            x += 1
Problem p02756 (python)

Fixed submission:
s = input()
q = int(input())
qs = [input().split() for i in range(q)]
n = False
l = r = ""
for op in qs:
    if op[0] == '1':
        n = not n
    if op[0] == '2':
        t , f, c = op
        f = int(f)
        if n:
            f = 1 if f != 1 else 2
        if f == 1:
            l=c+l
        elif f == 2:
            r+=c
s = l+s+r
print(s[::-1] if n else s)

Buggy submission (verdict: Runtime Error):
s = input()
q = int(input())
qs = [input().split() for i in range(q)]
n = False
l = r = ""
for op in qs:
    if op[0] == '1':
        n = not n
    if op[0] == '2':
        t , f, c = op
        f = int(f)
        if n:
            f = 1 if f != 1 else 2
        if f = 1:
            l=c+l
        elif f == 2:
            r+=c
s = l+s+r
print(s[::-1] if n else s)
Problem p03323 (python)

Fixed submission:
A,B=map(int,input().split())
if A<=8 and B<=8:
  print('Yay!')
else:
  print(':(')

Buggy submission (verdict: Runtime Error):
A=int(input())
B=int(input())
if A<=8 and B<=8:
  print('Yay!')
else:
  print(':(')

Buggy submission (verdict: Runtime Error):
number_A=(imput(A))
number_B=(imput(B))
if number_A<=8 and number_B<=8:
  print('Yay!')
else:
  print(':(')

Buggy submission (verdict: Runtime Error):
A=(imput())
B=(imput())
if A<=8 and B<=8:
  print('Yay!')
else:
  print(':(')

Buggy submission (verdict: Runtime Error):
A=int(imput())
B=int(imout())
if A<=8 and B<=8:
  print('Yay!')
else:
  print(':(')

Buggy submission (verdict: Runtime Error):
if A<=8 and B<=8:
  print('Yay!')
else:
  print(':(')
Problem p03324 (python)

Fixed submission:
D,N=map(int,input().split())
if N==100:
  print((N+1)*(100**D))
else:
  print(N*(100**D))

Buggy submission (verdict: Runtime Error):
D,N=map(int,input().split())
if N==100:
  print((N+1)*(100**D)
else:
  print(N*(100**D))

Buggy submission (verdict: Runtime Error):
D,N=map(int,input().split())
if N==100:
  print((N+1)*(100**D)
else:
  print(N*(100**D)

Buggy submission (verdict: Runtime Error):
D,N=map(int,input().split())
if N==100:
  ((N+1)*(100**D)
else:
  print(N*(100**D)

Buggy submission (verdict: Runtime Error):
D,N=map(int,input().split())
if N==100:
  (N+1*(100**D)
else:
  print(N*(100**D)

Buggy submission (verdict: Runtime Error):
D,N=map(int,input().split())
if N==100:
  (n+1*(100**D)
else:
  print(N*(100**D)

Buggy submission (verdict: Runtime Error):
D,N=map(int,input().split())
print(N*(100**D)
Problem p03433 (python)

Fixed submission:
N=int(input())
A=int(input())
if A >= (N%500):
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
N,A=map(int,input().split())
if A >= (N%500):
  print('Yes')
else:
  print('no')

Buggy submission (verdict: Runtime Error):
N,A=map(int,input().strip().split())
if A >= (N%500):
  print('Yes')
else:
  print('no')

Buggy submission (verdict: Runtime Error):
N,A=int(input().strip())
if A >= (N%500):
  print('Yes')
else:
  print('no')

Buggy submission (verdict: Runtime Error):
N,A=int(input().split())
if A >= (N%500):
  print('Yes')
else:
  print('no')

Buggy submission (verdict: Runtime Error):
N,A=[int(N),int(A)]
if A >= (N%500):
  print('Yes')
else:
  print('no')

Buggy submission (verdict: Runtime Error):
N,A=map(int,input().split())
if A >= (N%500):
  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,b=map(int,input().split())
if ((a*b)%2) == 0:
  print('even')
else:
  print('Obb’)

Buggy submission (verdict: Runtime Error):
ａ,ｂ=map(int,input().split())
if 0 == ((ａ*ｂ)%2):
  print('even')
else:
  print('Obb’)

Buggy submission (verdict: Runtime Error):
a,b = map(int,input().split())
if 0 == ((a*b)%2):
  print('even')
else:
  print('Obb’)

Buggy submission (verdict: Runtime Error):
A,B=map(int,input().split())
if 0 == ((a*b)%2):
  print('even')
else:
  print('Obb’)

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
if 0 == ((a*b)%2):
  print('even')
else:
  print('Obb’)
Problem p03469 (python)

Fixed submission:
s=input()
print(s[:3]+'8'+s[4:])

Buggy submission (verdict: Runtime Error):
print(input()[:3]+'8'+input()[5:])
Problem p03485 (python)

Fixed submission:
a,b=map(int,input().split())
print(-((-a-b)//2))

Buggy submission (verdict: Runtime Error):
print(-((-sum(map(int,input(),split())))//2))

Buggy submission (verdict: Runtime Error):
print(-(-sum(int,input(),split()))//2)

Buggy submission (verdict: Runtime Error):
print(-(-sum(int,input(),split()//2)))

Buggy submission (verdict: Runtime Error):
print(-(-sum(int,input(),split))//2)

Buggy submission (verdict: Runtime Error):
print(-((-(input())//2)))
Problem p03486 (python)

Fixed submission:
s=input()
t=input()
s=sorted(s)
t=sorted(t,reverse=True)
if s<t:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
s=input().sorted()
t=input().sorted()
if a>b:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
s=sorted(s)
t=sorted(t)
if a>b:
  print('Yes')
else:
  print('No')
Problem p03493 (python)

Fixed submission:
s=str(input())
print(s.count('1'))

Buggy submission (verdict: Runtime Error):
s=str(input())
print(s.count(1))

Buggy submission (verdict: Runtime Error):
l=str(s1,s2,s3)
print(l.count(1)

Buggy submission (verdict: Runtime Error):
l=str(s1s2s3)
print(l.count(1))

Buggy submission (verdict: Runtime Error):
l=str(s1s2s3)
print(l.count(1)

Buggy submission (verdict: Runtime Error):
s1,s2,s3=map(int,input().split())
if 0 == (s1+s2+s3):
  print('0')
elif 1 == (s1+s2+s3):
  print('1')
elif 2 == (s1+s2+s3):
  print('2')
else 3 == (s1+s2+s3):
  print('3')

Buggy submission (verdict: Runtime Error):
s1,s2,s3=map(int,input().split())
if 0 == (s1+s2+s3):
  print(0)
elif 1 == (s1+s2+s3):
  print(1)
elif 2 == (s1+s2+s3):
  print(2)
else 3 == (s1+s2+s3):
  print(3)

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

Buggy submission (verdict: Runtime Error):
a,b=map(int,input().split())
if 0 == ((a*b)%2):
  print('even')
else:
  print('Odd')
Problem p03636 (python)

Fixed submission:
S=input()
print(S[:1]+str(len(S)-2)+S[-1:])

Buggy submission (verdict: Runtime Error):
print(input()[:1]+str(len()-2)+input()[-1:])
Problem p03693 (python)

Fixed submission:
r,g,b=map(int,input().split())
l=(str(r)+str(g)+str(b))
if 0 == (int(l)%4):
  print('YES')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
r,g,b=map(str,input().split())
l=('r'+'g'+'b')
if 0 == (int(l)%4):
  print('YES')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
r,g,b=map(str,input().strip())=l
if 0 == (int(l)%4):
  print('YES')
else:
  print('NO')

Buggy submission (verdict: Runtime Error):
l=(str(r)+str(g)+str(b))
if 0 == (int(l)%4):
  print('YES')
else:
  print('NO')
Problem p03292 (python)

Fixed submission:
N = list(map(int,input().split()))
N.sort()

A = abs(N[0]-N[1])
B = abs(N[1]-N[2])

print(A+B)

Buggy submission (verdict: Runtime Error):
N = list(map(int,input(),split()))
A = N.sort()
print(A)
Problem p03308 (python)

Fixed submission:
N = int(input())
A = list(map(int,input().split()))
A.sort()
print(abs(A[0]-A[-1]))

Buggy submission (verdict: Runtime Error):
a = [input() for i in range(2)]
b = a[1]
x = int(max(b))-int(min(b))
print(x)

Buggy submission (verdict: Runtime Error):
a = input()
c, b = a.split("/n")
x = int(max(b))-int(min(b))
print(x)

Buggy submission (verdict: Runtime Error):
a = input()
b = input()
x = int(max(b))-int(min(b))
print(x)

Buggy submission (verdict: Runtime Error):
a = input()
b = input()
x = int(max(b))-int(min(b))
print(x)

Buggy submission (verdict: Runtime Error):
a = input()
b = list(int(input()))
x = max(b)-max(b)
print(x)

Buggy submission (verdict: Runtime Error):
a = input()
b = list(int(input()))
x = max(b)-max(a)
print(x)
Problem p03316 (python)

Fixed submission:
a = input()
sn = list(str(a))
y=0
 
for i in sn:
    x = int(i)
    y = y +x

a = int(a)
if a%y == 0:
    print('Yes')
else:
    print('No')

Buggy submission (verdict: Runtime Error):
a = input()
sn = list(str(a))

for i in sn:
    x = int(i)
    y = y + x

a = int(a)
if a%y == 0:
    print('Yes')
else:
    print('No')

Buggy submission (verdict: Runtime Error):
input = input()
sn = list(str(input))
y = 0
for i in sn:
  x = int(i)
  y = y + x

if input%%y == 0:
  print('Yes')
else:
  print('No')
Problem p03471 (python)

Fixed submission:
n, Y = map(int, input().split())
a = 0
for x in range(n+1):
    for y in range(n-x+1):
        z = n-x-y
        if (x*10000 + y*5000 + z*1000) == Y:
            print(x, y, z)
            a = 1
            break
    if a == 1:
        break
if a != 1:
    print(-1, -1, -1)

Buggy submission (verdict: Runtime Error):
n, Y = map(int, input().split())
for x in range(n):
    for y in range(n-x):
        z = n-x-y
        if (x*10000 + y*5000 + z*1000) == Y:
            print(x, y, z)
            a = 1
            break
if a != 1:
    print(-1, -1, -1)

Buggy submission (verdict: Runtime Error):
n, Y = map(int, input().split())
for x in range(n):
    for y in range(n-x):
        z = n-x-y
        if (x*10000 + y*5000 + z*1000) == Y:
            print(x, y, z)
            a = 1
            exit()
if a != 1:
    print(-1, -1, -1)
Problem p02747 (python)

Fixed submission:
s = input()
data = len(s)
s = list(s)
j = 0
for i in s:
  if j%2 == 0:
    if i != "h":
      break
  if j%2 == 1:
    if i != "i":
      break
  j += 1

      
if j == data and data%2 == 0:
  print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
data = input().split(" ")
A = input().split(" ")
B = input().split(" ")
total = 0
a = 0
b = 0
j = 0
for i in data:
    data[j] = int(i)
    j += 1
j = 0
for i in A:
    A[j] = int(i)
    j += 1
j = 0
for i in B:
    B[j] = int(i)
    j += 1


for i in range(data[2]):
    data1 = input().split()
    j = 0
    for i in data1:
        data1[j] = int(i)
        j += 1
    data2 = A[data1[0]-1] + B[data1[1]-1] - data1[2]
    if total > data2:
        total = data2

for i in A:
    if a > i:
        a = i
for i in B:
    if b > i:
        b = i

if total > a+b:
    total = a+b

print(total)

Buggy submission (verdict: Runtime Error):
data = input().split(" ")
A = input().split(" ")
B = input().split(" ")
total = 100000
a = 100000
b = 100000
j = 0
for i in data:
    data[j] = int(i)
    j += 1
j = 0
for i in A:
    A[j] = int(i)
    j += 1
j = 0
for i in B:
    B[j] = int(i)
    j += 1


for i in range(data[2]):
    data1 = input().split()
    j = 0
    for i in data1:
        data1[j] = int(i)
        j += 1
    data2 = A[data1[0]-1] + B[data1[1]-1] - data1[2]
    if total > data2:
        total = data2

for i in A:
    if a > i:
        a = i
for i in B:
    if b > i:
        b = i

if total > a+b:
    total = a+b

print(total)

Buggy submission (verdict: Runtime Error):
data = input().split(" ")
A = input().split(" ")
B = input().split(" ")
total = 100000
a = 100000
b = 100000
j = 0
for i in data:
    data[j] = int(i)
    j += 1
j = 0
for i in A:
    A[j] = int(i)
    j += 1
j = 0
for i in B:
    B[j] = int(i)
    j += 1


for i in range(data[2]):
    data1 = input().split()
    j = 0
    for i in data1:
        data1[j] = int(i)
        j += 1
    data2 = A[data1[0]-1] + B[data1[1]-1] - data1[2]
    print(data2)
    if total > data2:
        total = data2

for i in A:
    if a > i:
        a = i
for i in B:
    if b > i:
        b = i

if total > a+b:
    total = a+b

print(total)
Problem p02748 (python)

Fixed submission:
data = input().split(" ")
A = input().split(" ")
B = input().split(" ")
total = 1000000
a = 1000000
b = 1000000
j = 0
for i in data:
    data[j] = int(i)
    j += 1
j = 0
for i in A:
    A[j] = int(i)
    j += 1
j = 0
for i in B:
    B[j] = int(i)
    j += 1


for i in range(data[2]):
    data1 = input().split()
    j = 0
    for i in data1:
        data1[j] = int(i)
        j += 1
    data2 = A[data1[0]-1] + B[data1[1]-1] - data1[2]
    if total > data2:
        total = data2

for i in A:
    if a > i:
        a = i
for i in B:
    if b > i:
        b = i

if total > a+b:
    total = a+b

print(total)

Buggy submission (verdict: Runtime Error):
data = input().split(" ")
A = input().split(" ")
B = input().split(" ")
total = 0
a = 0
b = 0
j = 0
for i in data:
    data[j] = int(i)
    j += 1
j = 0
for i in A:
    A[j] = int(i)
    j += 1
j = 0
for i in B:
    B[j] = int(i)
    j += 1


for i in range(data[2]):
    data1 = input().split()
    j = 0
    for i in data1:
        data1[j] = int(i)
        j += 1
    data2 = A[data1[0]] + B[data[1]] - data1[2]
    if total > data2:
        total = data2

for i in A:
    if a > i:
        a = i
for i in B:
    if b > i:
        b = i

if total > a+b:
    total = a+b

print(total)

Buggy submission (verdict: Runtime Error):
data = input().split(" ")
A = input().split(" ")
B = input().split(" ")
total = 0
a = 0
b = 0

for i in data:
    i = int(i)
for i in A:
    i = int(i)
for i in B:
    i = int(i)

for i in range(data[2]):
    data1 = input().split()
    for i in data1:
        i = int(i)
    data2 = A[data1[0]] + B[data[1]] - data1[2]
    if total > data2:
        total = data2

for i in A:
    if a > i:
        a = i
for i in B:
    if b > i:
        b = i

if total > a+b:
    total = a+b

print(total)
Problem p02885 (python)

Fixed submission:
A,B = list(map(int,input().split()))
ans = A - 2*B
if ans < 0:
  ans = 0
print(ans)

Buggy submission (verdict: Runtime Error):
N = int(input())
L = list(map(int, input().split()))
ans = 0
L.sort()
for i in range(N-2):
  for j in range(i+1,N-1):
    for k in range(j+1,N):
      if L[i]+L[j] > L[k] and L[k]+L[j] > L[i] and L[i]+L[k] > L[j]:
        ans = ans + 1
      else:
        break
print(ans)
Problem p02957 (python)

Fixed submission:
A,B = list(map(int,input().split()))
a = abs(A+B) % 2
if a == 1:
  print("IMPOSSIBLE")
else:
  print(int(abs(A+B)/2))

Buggy submission (verdict: Runtime Error):
A,B = list(map(int,input().split()))
a = abs(A+B) % 2
if a == 1:
  print(IMPOSSIBLE)
else:
  print(int(abs(A+B)/2))
Problem p02717 (python)

Fixed submission:
X, Y, Z = input().split()
A = X
B = Y
C = Z
temp = A
A = B
B = temp
temp = A
A = C
C = temp

print(A, B, C);

Buggy submission (verdict: Runtime Error):
N, K = input().split()
N = int(N)
K = int(K)
temp = N
while N>0:
    if temp > K:
        N = N-K
        if N <= 0:
            print(abs(N))
    else:
        print(abs(N))

Buggy submission (verdict: Runtime Error):
X, Y, Z = int(input().split())
A = X
B = Y
C = Z
temp = A
A = B
B = temp
temp = A
A = C
C = temp

print(A, B, C);

Buggy submission (verdict: Runtime Error):
X = int(input())
Y = int(input())
Z = int(input())
A = X
B = Y
C = Z
temp = A
A = B
B = temp
temp = A
A = C
C = temp

print(A, B, C);

Buggy submission (verdict: Runtime Error):
X = int(input())
Y = int(input())
Z = int(input())
A = X
B = Y
C = Z
temp = A
A = B
B = temp
print(A, B, C);
temp = A
A = C
C = temp

print(A, B, C);

Buggy submission (verdict: Runtime Error):
X = int(input())
Y = int(input())
Z = int(input())
A = X
B = Y
C = Z
temp = A
A = B
B = temp
print(A, B, C);
temp = A
A = C
C = temp

print(A, B, C);

Buggy submission (verdict: Runtime Error):
X = int(input())
Y = int(input())
Z = int(input())
A = X
B = Y
C = Z
temp = A
A = B
B = temp
temp = A
A = C
C = temp

print(A, B, C);

Buggy submission (verdict: Runtime Error):
X = int(input())
Y = int(input())
Z = int(input())
A = X
B = Y
C = Z
temp = X
A = Z
C = Y
B = temp
print(A, B, C);

Buggy submission (verdict: Runtime Error):


X,Y,Z = int(input()), int(input()),int(input())
A = X
B = Y
C = Z
temp = X
A = Z
C = Y
B = temp
print(A, B, C);

Buggy submission (verdict: Runtime Error):
x,y,z = int(input()), int(input()),int(input())
temp = x
x = z
z = y
y = temp
print(x, y, z);

Buggy submission (verdict: Runtime Error):
x,y,z = int(input()), int(input()),int(input())
temp = x
x = z
z = y
y = temp
print(x, y, z);

Buggy submission (verdict: Runtime Error):
x = int(input())
y = int(input())
z = int(input())
temp = x
x = z
z = y
y = temp

print(x,y,z)

Buggy submission (verdict: Runtime Error):
x = int(input())
y = int(input())
z = int(input())
temp = x
x = z
z = y
y = temp

print(x,y,z)
Problem p03161 (python)

Fixed submission:
N_K=list(map(int,input().split()))
N=N_K[0]
K=N_K[1]
cost=list(map(int,input().split()))
answers=[0,abs(cost[1]-cost[0])]
if K==1:
	S=0
	for i in range(N-1):
		S += abs(cost[i]-cost[i+1])
	print (S)
else:
	for i in range(2,N):
		comp=[]
		if i<K:
			comp=[answers[i-j]+abs(cost[i]-cost[i-j]) for j in range(1,i+1)]
			answers.append(min(comp))
		else:
			comp=[answers[i-j]+abs(cost[i]-cost[i-j]) for j in range(1,K+1)]
			answers.append(min(comp))			
	print(answers[-1])

Buggy submission (verdict: Runtime Error):
N_K=list(map(int,input().split()))
N=N_K[0]
K=N_K[1]
cost=list(map(int,input().split()))
f_inf=float('inf')
answers=[f_inf for i in range(N)]
answers[0]=0
for i in range(0,N):
	if i+K<=N-1:
		for j in range(0,K+1):
			answers[i+j] = min(answers[i+j]
			,(answers[i]+abs(cost[i]-cost[i+j])))
	elif K>=N:
		for j in range(0,N-i):
			answers[i+j] = min(answers[i+j]
			,(answers[i]+abs(cost[i]-cost[i+j])))
	else:
		for j in range(0,N-K-1):
			answers[i+j] = min(answers[i+j]
			,(answers[i]+abs(cost[i]-cost[i+j])))
print(answers[N-1])
Problem p02717 (python)

Fixed submission:
A,B,C= map(int,input().split())
print(C,A,B)

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

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

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

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

Buggy submission (verdict: Runtime Error):
a = int(input()), b= int(input()), c=int(input())
print(a, b, c)
Problem p02724 (python)

Fixed submission:
X = int(input())
num500=X//500
num5=(X%500)//5
print (1000*num500+5*num5)

Buggy submission (verdict: Runtime Error):
X = int(input())
num500=//500
num5=(X%500)//5
print (1000*num500+5*num5)

Buggy submission (verdict: Runtime Error):
X = input()
num500=X//500
num5=(X%500)//5
print (1000*num500+5*num5)

Buggy submission (verdict: Runtime Error):
X = input()
num_500=X//500
num_5=(X%500)//5
print (1000*num_500+5*num_5)
Problem p02730 (python)

Fixed submission:
S = input()
N = len(S)
K = (N-3)//2
if S == S[::-1] and S[0:K] == S[K:0:-1]:
    print ('Yes')
else:
    print ('No')

Buggy submission (verdict: Runtime Error):

S = input()
N = len(S)
if S == S[::-1] and S[0:(N-3)/2] == S[0:(N-3)/2:-1]:
    print ('Yes')
else:
    print ('No')

Buggy submission (verdict: Runtime Error):
S = input()
N = len('S')
if S == S[::-1] and S[0:(N-3)/2] == S[0:(N-3)/2:-1]:
    print ('Yes')
else:
    print ('No')

Buggy submission (verdict: Runtime Error):
S = input()
N = len('S')
if S = S[::-1] and S[0:(N-3)/2] = S[0:(N-3)/2:-1]:
    print ('Yes')
else:
    print ('No')

Buggy submission (verdict: Runtime Error):
S = input()
N = len(S)
if S = S[::-1] and S[0:(N-3)/2] = S[0:(N-3)/2:-1]:
    print ('Yes')
else:
    print ('No')

Buggy submission (verdict: Runtime Error):
S = input()
if S = S[::-1] and S[0:(N-3)/2] = S[0:(N-3)/2:-1]:
    print ('Yes')
else:
    print ('No')
Problem p02741 (python)

Fixed submission:
list = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
K=int(input())
print(list[K-1])

Buggy submission (verdict: Runtime Error):
list = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
K=input()
print([K-1])

Buggy submission (verdict: Runtime Error):
list = [1, 1, 1, 2, 1, 2, 1, 5, 2, 2, 1, 5, 1, 2, 1, 14, 1, 5, 1, 5, 2, 2, 1, 15, 2, 2, 5, 4, 1, 4, 1, 51]
print([K-1])
Problem p02742 (python)

Fixed submission:
H, W=map(int, input().split())
if H==1 or W==1:
    print(1)
else:
    print((H*W+1)//2)

Buggy submission (verdict: Runtime Error):
H, W=map(int, input().split)
S=(H*W+1)//2
print(S)

Buggy submission (verdict: Runtime Error):
H, W=map(int, input().split)
print((H*W+1)//2)
Problem p02747 (python)

Fixed submission:
import re
if re.match ("^(hi)+$", input()):
    print ("Yes")
else:
    print ("No")

Buggy submission (verdict: Runtime Error):
import re
if re.match ('(hi)'+, input()):
    print ('Yes')
else:
    print ('No')

Buggy submission (verdict: Runtime Error):
import re
if re.match ("(hi)"+, input()):
    print ("Yes")
else:
    print ("No")

Buggy submission (verdict: Runtime Error):
import re
if re.match ((hi)+, input()):
    print ("Yes")
else:
    print ("No")