Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Time Limit Exceeded):
a, op, b = input().split()
while True:
  if op == '+' : print(a + b)
  elif op == '-' : print(a - b)
  elif op == '/' : print(a / b)
  elif op == '*' : print(a * b)
  else : break

Fixed submission:
while True:
  a, op, b = input().split()
  a = int(a)
  b = int(b)
  if op == '+': print(a + b)
  elif op == '-': print(a - b)
  elif op == '/': print(a // b)
  elif op == '*': print(a * b)
  else: break
Buggy python submission (verdict: Runtime Error):
input()
a = [int(i), for i in input().split()]
print(min(a), max(a), sum(a))

Fixed submission:
input()
a = [int(i) for i in input().split()]
print(min(a), max(a), sum(a))
Buggy python submission (verdict: Runtime Error):
while True:
  H, W = map(int, input().split())
  if H == W == 0: break
  print('#' * W + '\n' + trye('#' + '.' * (W - 2) + '#' + '\n') * (H - 2) + '#' * W)

Fixed submission:
while True:
  H, W = map(int, input().split())
  if H == W == 0: break
  print('#' * W + '\n' + ('#' + '.' * (W - 2) + '#' + '\n') * (H - 2) + '#' * W + '\n')
Buggy python submission (verdict: Runtime Error):
input()
A = [i for i in input().split()]
A.reverse()
print(' '.join(A))a

Fixed submission:
input()
A = [i for i in input().split()]
A.reverse()
print(' '.join(A))

Buggy python submission (verdict: Runtime Error):
 input()
A = [i for i in input().split()]
A.reverse()
print(' '.join(A))

Fixed submission:
input()
A = [i for i in input().split()]
A.reverse()
print(' '.join(A))
Buggy python submission (verdict: Runtime Error):
n, m = list(map(int, input().split()))
A = [[0 for w in range(m)] for h in range(n)]
B = [0 for h in range(m)]
for i in range(n):
  A[i] = list(map(int, input().split()))
for i in range(m):
  B[i] = int(input())
for i in range(n):
  c = 0
  for = j in range(m):
    c += A[i][j] * B[j]
    print(c)

Fixed submission:
n, m = list(map(int, input().split()))
A = [[0 for w in range(m)] for h in range(n)]
B = [0 for h in range(m)]
for i in range(n):
    A[i] = list(map(int, input().split()))
for i in range(m):
    B[i] = int(input())

for i in range(n):
    c = 0
    for j in range(m):
        c += A[i][j] * B[j]
    print(c)
Buggy python submission (verdict: Runtime Error):
x = x^3

Fixed submission:
x = int(input())
y = x **3
print(y, end = "\n")

Buggy python submission (verdict: Runtime Error):
def cubic(x):
    x = x^3
    print(x\n)

Fixed submission:
x = int(input())
y = x **3
print(y, end = "\n")

Buggy python submission (verdict: Runtime Error):
x = x**3
print(x)

Fixed submission:
x = int(input())
y = x **3
print(y, end = "\n")

Buggy python submission (verdict: Runtime Error):
answer = x **3
print(answer)

Fixed submission:
x = int(input())
y = x **3
print(y, end = "\n")

Buggy python submission (verdict: Runtime Error):
y = x ** 3
print(y)

Fixed submission:
x = int(input())
y = x **3
print(y, end = "\n")
Buggy python submission (verdict: Runtime Error):
data = int(input().split())
a = data[0]
b = data[1]
print(a * b, end = " ")
print(a* 2 + b * 2, end = "\n")

Fixed submission:
data = input().split()
a = int(data[0])
b = int(data[1])
print(a * b, end = " ")
print(a *2 + b * 2, end = "\n")
Buggy python submission (verdict: Runtime Error):
S = int(input())
h = int(S / 3600)
r1 = int(S % 3600)
m = int(r1 / 60)
r2 = int(r % 60)
s = r2
print(":".join([str(h), str(m), str(s)]))

Fixed submission:
S = int(input())
h = int(S / 3600)
r1 = int(S % 3600)
m = int(r1 / 60)
r2 = int(r1 % 60)
s = r2
print(":".join([str(h), str(m), str(s)]), end = "\n")

Buggy python submission (verdict: Runtime Error):
S = int(input())
h = int(S / 3600)
r1 = int(S % 3600)
m = int(r1 / 60)
r2 = int(r % 60)
s = r2
print(":".join([str(h), str(m), str(s)]), end = "\n")

Fixed submission:
S = int(input())
h = int(S / 3600)
r1 = int(S % 3600)
m = int(r1 / 60)
r2 = int(r1 % 60)
s = r2
print(":".join([str(h), str(m), str(s)]), end = "\n")
Buggy python submission (verdict: Runtime Error):
W, H, x, y, r = map(int, input().split())
if x == 0 or y == 0 or x < 0 or y < 0:
    print(No)
elif W == x or H == y:
    print("No")

elif W < x or H < y:
    print("No")

elif W < x+r or H < y+r:
    print("No")
else:
    print("Yes")

Fixed submission:
W, H, x, y, r = map(int, input().split())
if x == 0 or y == 0 or x < 0 or y < 0:
    print("No")
elif W == x or H == y:
    print("No")

elif W < x or H < y:
    print("No")

elif W < x+r or H < y+r:
    print("No")
else:
    print("Yes")
Buggy python submission (verdict: Runtime Error):
a, b = map(int, input().split())
if a < 0 or b < 0:
    break
elif a > 10 **9 or b > 10 **9:
    break
else:
    d = int(a/b)
    r = int(a%b)
    f = float(a/b)
    print(d, r, "{0:01.5f}".format(f))

Fixed submission:
while True:
    a, b = map(int, input().split())
    if a <= 0 or b <= 0:
        break
    elif a > 10 **9 or b > 10**9:
        break
    else:
        d = int(a/b)
        r = int(a%b)
        f = float(a/b)
        print(d, r, "{0:01.5f}".format(f))
        break

Buggy python submission (verdict: Runtime Error):
while True:
    a, b = map(int, input().split())
    if a <= 0 or b <= 0:
        break
    elif a > 10 **9 or b > 10 **9:
        break
    else:
        d = int(a/b)
        r = int(a%b)
        f = float(a/b)
        print(d, r, "{0:01.5f}".format(f))

Fixed submission:
while True:
    a, b = map(int, input().split())
    if a <= 0 or b <= 0:
        break
    elif a > 10 **9 or b > 10**9:
        break
    else:
        d = int(a/b)
        r = int(a%b)
        f = float(a/b)
        print(d, r, "{0:01.5f}".format(f))
        break
Buggy python submission (verdict: Runtime Error):
import math
r = int(input())

S = r * r * math.pi
C = r * 2 * math.pi
print("{0:02.6f}".format(S), end =" ")
print("{0:02.6f}".format(C))

Fixed submission:
import math
r = float(input())

S = r * r * math.pi
C = r * 2 * math.pi
print("{0:02.6f}".format(S), end =" ")
print("{0:02.6f}".format(C))
Buggy python submission (verdict: Runtime Error):
while True:
    a, op, b = map(str, input().split())
    a = int(a)
    b = int(b)
    if 0 < a < 20001 and 0 < b < 20001:
        if op == "+":
            answer = a + b
            print(answer)
        elif op == "-":
            answer = a - b
            print(answer)
        elif op == "*":
            answer = a * b
            print(answer)
        elif op == "/":
            answer = a / b
            print(answer)
        elif op == "?":
            break
    else:
        continue

Fixed submission:
import math

while True:
    a, op, b = map(str, input().split())
    a = int(a)
    b = int(b)
    if 0 <= a and b < 20001:
        if op == "+":
            answer = a + b
            print(answer)
        elif op == "-":
            answer = a - b
            print(answer)
        elif op == "*":
            answer = a * b
            print(answer)
        elif op == "/":
            answer = a / b
            print(math.floor(answer))
        elif op == "?":
            break
    else:
        if op == "?":
            break
        else:
            continue

Buggy python submission (verdict: Runtime Error):
import math

while True:
    a, op, b = map(str, input().split())
    a = int(a)
    b = int(b)
    if 0 < a < 20001 and 0 < b < 20001:
        if op == "+":
            answer = a + b
            print(answer)

        elif op == "-":
            answer = a - b
            print(answer)

        elif op == "*":
            answer = a * b
            print(answer)

        elif op == "/":
            answer = a / b
            print(math.floor(answer))

        elif op == "?":
            break
    else:
        continue

Fixed submission:
import math

while True:
    a, op, b = map(str, input().split())
    a = int(a)
    b = int(b)
    if 0 <= a and b < 20001:
        if op == "+":
            answer = a + b
            print(answer)
        elif op == "-":
            answer = a - b
            print(answer)
        elif op == "*":
            answer = a * b
            print(answer)
        elif op == "/":
            answer = a / b
            print(math.floor(answer))
        elif op == "?":
            break
    else:
        if op == "?":
            break
        else:
            continue
Buggy python submission (verdict: Runtime Error):
i= readInt()
print i*i*i

Fixed submission:
i = input()
print i*i*i
Buggy python submission (verdict: Runtime Error):
nums = list(map(int, input().split()))
if nums[0] < nums[1] < nums[2]:
    print("Yes")
else:
    print("No")

Fixed submission:
nums = list(map(int, input().split()))
if nums[0] < nums[1] < nums[2]:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
print(int(raw_input())**3)

Fixed submission:
print(int(raw_input())**3)
Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
print(a * b)

Fixed submission:
a, b = input().split()
a = int(a)
b = int(b)
print(a*b, a*2 + b*2)
Buggy python submission (verdict: Runtime Error):
print(x ** 3)

Fixed submission:
x = int(input())
print(x ** 3)

Buggy python submission (verdict: Runtime Error):
x = input()
print(x ** 3)

Fixed submission:
x = int(input())
print(x ** 3)
Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())

s = (a + b) * 2
m = a * b
print(m, s)

Fixed submission:
a, b = list(map(int, input().split()))
c = (a + b) * 2
d = a * b
print(str(d) + " " + str(c))

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

s = int((a + b) * 2)
m = int(a * b)
print(m, s)

Fixed submission:
a, b = list(map(int, input().split()))
c = (a + b) * 2
d = a * b
print(str(d) + " " + str(c))
Buggy python submission (verdict: Runtime Error):
S = int(input())
h = 0
m = 0
s = 0

while True:
    if S >= 3600:
        h += 1
        S -= 3600
    elif S >= 60:
        m += 1
        S -= 60
    else:
        S = s
        break

print(h + ":" + m + ":" + s)

Fixed submission:
S = int(input())
h = 0
m = 0
s = 0
 
while True:
    if S >= 3600:
        h += 1
        S -= 3600
    elif S >= 60:
        m += 1
        S -= 60
    else:
        break
 
print(str(h) + ":" + str(m) + ":" + str(S))
Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
c = int(input())

if a < b and b < c:
    print("Yes")
else:
    print("No")

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

if a < b and b < c:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
a = map(int, input().split())
a.sort()
a[0:]

Fixed submission:
a = list(map(int, input().split()))
a.sort()
print(str(a[0]) + " " + str(a[1]) + " " + str(a[2]))

Buggy python submission (verdict: Runtime Error):
a = map(int, input().split())
a.sort()
print(a[0:])

Fixed submission:
a = list(map(int, input().split()))
a.sort()
print(str(a[0]) + " " + str(a[1]) + " " + str(a[2]))

Buggy python submission (verdict: Runtime Error):
a = list(map(int, input().split()))
a.sort()
print(a[0] + " " + a[1] + " " + a[2])

Fixed submission:
a = list(map(int, input().split()))
a.sort()
print(str(a[0]) + " " + str(a[1]) + " " + str(a[2]))
Buggy python submission (verdict: Runtime Error):
if x - r < 0 or y - r < 0 or x + r > W or y + r > H:
    print("No")
else:
    print("Yes")

Fixed submission:
W, H, x, y, r = map(int, input().split())

if x - r < 0 or y - r < 0 or x + r > W or y + r > H:
    print("No")
else:
    print("Yes")
Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
print(a * b)
print(a*2 + b*2)

Fixed submission:
a = input().split()
men = int(a[0]) * int(a[1])
shu = int(a[0]) * 2 + int(a[1]) * 2
print('{0} {1}'.format(men,shu))
Buggy python submission (verdict: Runtime Error):
pi = 3.141592653589793
r = int(input())
print('{0:f} {1:f}'.format(r*r*pi, 2 * r * pi))

Fixed submission:
pi = 3.141592653589793
r = float(input())
print('{0:f} {1:f}'.format(r*r*pi, 2 * r * pi))
Buggy python submission (verdict: Runtime Error):
print n ** 3

Fixed submission:
n = input()

cube = n ** 3

print cube

Buggy python submission (verdict: Runtime Error):
n = raw_input()

print n ** 3

Fixed submission:
n = input()

cube = n ** 3

print cube
Buggy python submission (verdict: Runtime Error):
n = raw_input()

a = n.split()

b = a[0] * a[1]

c = (a[0] + a[1]) * 2

print b c

Fixed submission:
n = raw_input()

a = n.split(" ")

b = int(a[0])

c = int(a[1])

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

Buggy python submission (verdict: Runtime Error):
n = raw_input()

a = n.split()

b = a[0] * a[1]

c = (a[0] + a[1]) * 2

print b , c

Fixed submission:
n = raw_input()

a = n.split(" ")

b = int(a[0])

c = int(a[1])

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

Buggy python submission (verdict: Runtime Error):
n = raw_input()

a = int(n.split())

b = a[0] * a[1]

c = (a[0] + a[1]) * 2

print b , c

Fixed submission:
n = raw_input()

a = n.split(" ")

b = int(a[0])

c = int(a[1])

print b * c , (b + c) * 2
Buggy python submission (verdict: Runtime Error):
a, b = map(int,input().split())
print(a / / b, a % b, float(a / b))

Fixed submission:
a,b = map(int,input().split())
d = a // b
r = a % b
f = a / b
print('{} {} {:f}'.format(d,r,f))

Buggy python submission (verdict: Runtime Error):
a, b = map(int,input().split())
print(a / / b, a % b, float(a / b))

Fixed submission:
a,b = map(int,input().split())
d = a // b
r = a % b
f = a / b
print('{} {} {:f}'.format(d,r,f))
Buggy python submission (verdict: Runtime Error):
import math
r = int(input())
print(r ** 2 * math.pi, 2 * r * math.pi)

Fixed submission:
import math
r = float(input())
area = r * r * math.pi
circum = 2 * r * math.pi
print("{:f} {:f}".format(area, circum))

Buggy python submission (verdict: Runtime Error):

import math
r = int(input())
area = r ** 2 * math.pi
circum = 2 * r * math.pi
print("{:f} {:f}".format(area, circum))

Fixed submission:
import math
r = float(input())
area = r * r * math.pi
circum = 2 * r * math.pi
print("{:f} {:f}".format(area, circum))

Buggy python submission (verdict: Runtime Error):
import math
r = int(input())
area = r * r * math.pi
circum = 2 * r * math.pi
print("{:f} {:f}".format(area, circum))

Fixed submission:
import math
r = float(input())
area = r * r * math.pi
circum = 2 * r * math.pi
print("{:f} {:f}".format(area, circum))
Buggy python submission (verdict: Time Limit Exceeded):
while True:
    n, x = map(int, input().split())
    if n == x == 0:
        break
    y = 0
    for i in range(1, n + 1):
        for j in range(1, n + 1):
                for k in range(1, n + 1):
                    if i != j != k != i and i + j + k == x:
                        y += 1
    print(y // 6)

Fixed submission:
while True:
    n, x = map(int, input().split())
    if n == x == 0:
        break
    y = 0
    for i in range(1, n - 1):
        for j in range(i + 1, n):
            for k in range(j + 1, n + 1):
                if i + j + k == x:
                    y += 1
    print(y)

Buggy python submission (verdict: Time Limit Exceeded):
while True:
    n, x = map(int, input().split())
    if n == x == 0:
        break
    y = 0
    for i in range(1, n + 1):
        for j in range(1, n + 1):
            if i == j:
                continue
            for k in range(1, n + 1):
                if j == k or k == i:
                    continue
                elif i + j + k == x:
                    y += 1
    print(y // 6)
    

Fixed submission:
while True:
    n, x = map(int, input().split())
    if n == x == 0:
        break
    y = 0
    for i in range(1, n - 1):
        for j in range(i + 1, n):
            for k in range(j + 1, n + 1):
                if i + j + k == x:
                    y += 1
    print(y)
Buggy python submission (verdict: Runtime Error):
c, r = map(int, input().split())
last_list = [0] * r
for _ in range(c):
    n = 0
    x = input()
    sum_list = list(map(int, x.split()))
    for i in range(r):
        last_list[i] += sum_list[i]
        n += sum_list[i]
    print(x, end = " ")
    print(n)

sum = 0   
for a in last_list:
    sum += a
print(*last_list, sum)

Fixed submission:
r, c = map(int, input().split())
last_list = [0] * (c + 1)
for _ in range(r):
    n = 0
    x = input()
    sum_list = list(map(int, x.split()))
    for i in range(c):
        last_list[i] += sum_list[i]
        n += sum_list[i]
    print(x, n)

last_list[-1] = sum(last_list)
print(*last_list)

Buggy python submission (verdict: Runtime Error):
c, r = map(int, input().split())
last_list = [0] * r
for _ in range(c):
    n = 0
    x = input()
    sum_list = list(map(int, x.split()))
    for i in range(r):
        last_list[i] += sum_list[i]
        n += sum_list[i]
    print(x, end = " ")
    print(n)

sum = 0   
for a in last_list:
    sum += a
print(*last_list, sum)

Fixed submission:
r, c = map(int, input().split())
last_list = [0] * (c + 1)
for _ in range(r):
    n = 0
    x = input()
    sum_list = list(map(int, x.split()))
    for i in range(c):
        last_list[i] += sum_list[i]
        n += sum_list[i]
    print(x, n)

last_list[-1] = sum(last_list)
print(*last_list)

Buggy python submission (verdict: Runtime Error):
c, r = map(int, input().split())
last_list = [0] * r
for _ in range(c):
    n = 0
    x = input()
    sum_list = list(map(int, x.split()))
    for i in range(r):
        last_list[i] += sum_list[i]
        n += sum_list[i]
    print(x+" "+str(n))

sum = 0   
for a in last_list:
    sum += a
print(*last_list, sum)

Fixed submission:
r, c = map(int, input().split())
last_list = [0] * (c + 1)
for _ in range(r):
    n = 0
    x = input()
    sum_list = list(map(int, x.split()))
    for i in range(c):
        last_list[i] += sum_list[i]
        n += sum_list[i]
    print(x, n)

last_list[-1] = sum(last_list)
print(*last_list)

Buggy python submission (verdict: Runtime Error):
c, r = map(int, input().split())
last_list = [0] * r
for _ in range(c):
    n = 0
    x = input()
    sum_list = list(map(int, x.split()))
    for i in range(r):
        last_list[i] += sum_list[i]
        n += sum_list[i]
    print(x, n)
sum = 0   
for a in last_list:
    sum += a
print(*last_list, sum)

Fixed submission:
r, c = map(int, input().split())
last_list = [0] * (c + 1)
for _ in range(r):
    n = 0
    x = input()
    sum_list = list(map(int, x.split()))
    for i in range(c):
        last_list[i] += sum_list[i]
        n += sum_list[i]
    print(x, n)

last_list[-1] = sum(last_list)
print(*last_list)
Buggy python submission (verdict: Runtime Error):
string = input()
for i in string:
    if i.isupper():
        print(i.lower(), end = "")
    elif string[i].islower():
        print(i.upper(), end = "")
    else:
        print(i, end = "")

Fixed submission:
print(input().swapcase())
Buggy python submission (verdict: Runtime Error):
# coding: utf-8
a = int(input())
b = int(input())

menseki = a * b

print(menseki, a*2 + b*2)

Fixed submission:
# coding: utf-8
a, b = map(int, input().split(' '))

menseki = a * b

print(menseki, a*2 + b*2)
Buggy python submission (verdict: Runtime Error):
a = []
while True:
    x = map(raw_input().split())
    if x[1] == '?':
        break
    if x[1] == '+':
        a.append(int(x[0] + int(x[2])))
    if x[1] == '-':
        a.append(int(x[0] - int(x[2])))
    if x[1] == '*':
        a.append(int(x[0] * int(x[2])))
    if x[1] == '/':
        a.append(int(x[0] / int(x[2])))
for i in range(len(a)):
    print a[i]

Fixed submission:
a = []
while True:
    x = map(str, raw_input().split())
    if x[1] == '?':
        break
    if x[1] == '+':
        a.append(int(x[0]) + int(x[2]))
    if x[1] == '-':
        a.append(int(x[0]) - int(x[2]))
    if x[1] == '*':
        a.append(int(x[0]) * int(x[2]))
    if x[1] == '/':
        a.append(int(x[0]) / int(x[2]))
for i in range(len(a)):
    print a[i]
Buggy python submission (verdict: Runtime Error):
n = input()
a = map(int, input().split())
min = a[0]
max = a[0]
sum = 0
for i in range(n):
    if min > a[i]:
        min = a[i]
    if max < a[i]:
        max = a[i]
    sum += a[i]
print min, max, sum

Fixed submission:
n = input()
a = map(int, raw_input().split())
min = a[0]
max = a[0]
sum = 0
for i in range(n):
    if min > a[i]:
        min = a[i]
    if max < a[i]:
        max = a[i]
    sum += a[i]
print min, max, sum
Buggy python submission (verdict: Runtime Error):
a = int(input())
b = int(input())
print(a*b, 2 * (a + b))

Fixed submission:
a, b = input().split()
a = int(a)
b = int(b)
print(a*b, 2 * (a + b))

Buggy python submission (verdict: Runtime Error):
#coding: utf-8

line=input()
lines=line.split(" ")

a=lines[0]
b=lines[1]

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

Fixed submission:
#coding: utf-8

nums=list(map(int,input().split()))

a=nums[0]
b=nums[1]

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

Buggy python submission (verdict: Runtime Error):
#coding: utf-8

line=input()
lines=line.split(" ")

a=lines[0]
b=lines[1]

print ("%s %s",(a+b)*2,a*b)

Fixed submission:
#coding: utf-8

nums=list(map(int,input().split()))

a=nums[0]
b=nums[1]

print (a*b,(a+b)*2)
Buggy python submission (verdict: Runtime Error):
#coding: utf-8

nums=list(map(int,input().split()))

a=nums[0]
b=nums[1]

if(a>b){
    print("a>b")
}elif(a<b){
    print("a<b")
}else{
    print("a==b")
}

Fixed submission:
#coding: utf-8

nums=list(map(int,input().split()))

a=nums[0]
b=nums[1]

if a>b:
    print("a > b")
elif a<b:
    print("a < b")
else:
    print("a == b")
Buggy python submission (verdict: Runtime Error):
import math
r = int(input())
print("%.6f %.6f" % (math.pi * (r**2), 2 * math.pi * r))

Fixed submission:
import math
r = float(input())
print("%.6f %.6f" % (math.pi * (r**2), 2 * math.pi * r))
Buggy python submission (verdict: Runtime Error):
n = int(input())
list = [i for i in input().split()].reverse()
print(" ".join(list))

Fixed submission:
n = int(input())
list = [i for i in input().split()]
list.reverse()
print(" ".join(list))
Buggy python submission (verdict: Runtime Error):
p(long, raw_input().split())
max = max(n)
min = min(n)
sum = sum(n)
print "%d %d %d" %(min,max,sum)

Fixed submission:
a = input()
n = map(long, raw_input().split())
max = max(n)
min = min(n)
sum = sum(n)
print "%d %d %d" %(min,max,sum)
Buggy python submission (verdict: Runtime Error):
data = [int(i) for i in input().split()]

data.sort()
print("{0} {1} {2}".format(data[0],data[1],data[2])

Fixed submission:
data = [int(i) for i in input().split()]

data.sort()
print("{0} {1} {2}".format(data[0],data[1],data[2]))
Buggy python submission (verdict: Runtime Error):
  1 count = 1
  2 
  3 while True:
  4     x = int(input())
  5     if x != 0:
  6         print("Case {0}: {1}".format(count, x))
  7         count += 1
  8 
  9     else:
 10         break

Fixed submission:
count = 1
 
while True:
     x = int(input())
     if x != 0:
         print("Case {0}: {1}".format(count, x))
         count += 1
 
     else:
         break
Buggy python submission (verdict: Runtime Error):
a, b, c = [int(i) for i in input().split()]

count = 0
a =< b

for x in range(a,b):
    if c % x == 0:
        count += 1

print(count)

Fixed submission:
a,b,c = [int(i) for i in input().split()]

count = 0

for x in range(a,b+1):
    if c % x == 0:
        count += 1

print(count)
Buggy python submission (verdict: Runtime Error):
 input()

data = [int(i) for i in input().split()]

print(min(data), max(data), sum(data))

Fixed submission:
input()

data = [int(i) for i in input().split()]

print(min(data), max(data), sum(data))
Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i), for i in input().split()]
    if H == W == 0:
         break

    for h in range(H):
        for w in range(W):
            if h == 0 or h == H - 1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')

         print()
    print()

Fixed submission:
while True:
    H, W = [int(i) for i in input().split()]
    if H == W == 0:
        break

    for h in range(H):
        for w in range(W):
            if h == 0 or h == H - 1 or w == 0 or w == W - 1:
                print('#', end='')
            else:
                print('.', end='')

        print()
    print()