Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
a, b ,c = [int(i) for i in input().split()]

a for i in(1, 10001):
b for i in(1, 10001):
c = a == b

    
    

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

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

print(total)
Buggy python submission (verdict: Runtime Error):
while True:
    a, op, b = input().split()
    a = int(a)
    b = int(b)
    
    if op == '?':
        break
        
        
    if op == '+':
        print(a + b)
        
    if op == '-':
        print(a - b)
        
    if op == '*':
        print(a * b)
        
    if op == '/':
        print(a / b)

    if op == '%'
        print(a % b)

Fixed submission:
while True:
    a, op, b = input().split()
    a = int(a)
    b = int(b)
    
    if op == '?':
        break
        
        
    if op == '+':
        print(a + b)
        
    if op == '-':
        print(a - b)
        
    if op == '*':
        print(a * b)
        
    if op == '/':
        print(a // b)

Buggy python submission (verdict: Runtime Error):
while True:
    a, op, b = input().split()
    a = int(a)
    b = int(b)
    
    if op == '?':
        break
        
        
    if op == '+':
        print(a + b)
        
    if op == '-':
        print(a - b)
        
    if op == '*':
        print(a * b)
        
    if op == '/':
        print(a / b)

       break

Fixed submission:
while True:
    a, op, b = input().split()
    a = int(a)
    b = int(b)
    
    if op == '?':
        break
        
        
    if op == '+':
        print(a + b)
        
    if op == '-':
        print(a - b)
        
    if op == '*':
        print(a * b)
        
    if op == '/':
        print(a // b)
Buggy python submission (verdict: Runtime Error):
while True:
    H, W = [int(i) fir 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()
Buggy python submission (verdict: Runtime Error):
while True:
n = [int(i) for i in input().split()]

if n == x == 0:
    break

3 <= n <= 100

total = n < n
total2 = total < n
total3 = total2 < n

for i in range(total):
    for a in range(total2):
        for c in range(total3):
            
    if i + a + c:
        return 'x'
    else:
        print('None')

print()

Fixed submission:
while True:
    n, x = [int(i) for i in input().split()]

    if n == x == 0:
        break

    count = 0
    for s in range(1, n + 1):
        for m in range(s+1, n):
            for e in range(m+1, n+1):
                if x == s + m + e:
                    count += 1

    print(count)

Buggy python submission (verdict: Runtime Error):
while True:
n = [int(i) for i in input().split()]

if n == x == 0:
    break

3 <= n <= 100

total = n < n
total2 = 'total' < n
total3 = 'total2' < n

for i in range('total'):
    for a in range('total2'):
        for c in range('total3'):
            
    if i + a + c:
        return 'x'
    else:
        print('None')

print()

Fixed submission:
while True:
    n, x = [int(i) for i in input().split()]

    if n == x == 0:
        break

    count = 0
    for s in range(1, n + 1):
        for m in range(s+1, n):
            for e in range(m+1, n+1):
                if x == s + m + e:
                    count += 1

    print(count)

Buggy python submission (verdict: Runtime Error):
while True:
    n, x = [int(i) for i in input().split()]

    if n == x == 0:
        break

    count = 0
    for s in range(1, n + 1):
        for m in range(s+1, n):
            for e in range(m+1, n+1):
                if x == sum(s, m, e):
                    count += 1
    print(count)

Fixed submission:
while True:
    n, x = [int(i) for i in input().split()]

    if n == x == 0:
        break

    count = 0
    for s in range(1, n + 1):
        for m in range(s+1, n):
            for e in range(m+1, n+1):
                if x == s + m + e:
                    count += 1

    print(count)
Buggy python submission (verdict: Runtime Error):
r, c = [int(i) for i in input().split()]

data = []
sum_row = [0] * (c + 1)

for ri in range(r):
    data[ri].append([int(i) for i in input().split()])
    data[ri].append(sum(data[ri]))
    print(" ".join([str(d) for d in data[ri]]))
    for ci in range(c + 1):
        sum_row[ci] += data[ri][ci]
print(" ".join([str(s) for s in sum_row]))

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

data = []
sum_row = [0] * (c + 1)

for ri in range(r):
    data.append([int(i) for i in input().split()])
    data[ri].append(sum(data[ri]))
    print(" ".join([str(d) for d in data[ri]]))
    for ci in range(c + 1):
        sum_row[ci] += data[ri][ci]
print(" ".join([str(s) for s in sum_row]))

Buggy python submission (verdict: Runtime Error):
r, c = [int(i) for i in input().split()]

data = []
sum_row = [0] * (c + 1)

for ri in range(r):
    data[ri].append([int(i) for i in input().split()])
    data[ri].append(sum(data[ri]))
    print(" ".join([str(d) for d in data[ri]]))
    for ci in range(c + 1):
        sum_row[ci] += data[ri] [ci]
print(" ".join([str(s) for s in sum_row]))

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

data = []
sum_row = [0] * (c + 1)

for ri in range(r):
    data.append([int(i) for i in input().split()])
    data[ri].append(sum(data[ri]))
    print(" ".join([str(d) for d in data[ri]]))
    for ci in range(c + 1):
        sum_row[ci] += data[ri][ci]
print(" ".join([str(s) for s in sum_row]))

Buggy python submission (verdict: Runtime Error):
r, c = [int(i) for i in input().split()]

data = []
sum_row = [0] * (c + 1)

for ri in range(r):
    data[ri].append([int(i) for i in input().split()])
    data[ri].append(sum(data[ri]))
    print(" ".join([str(d) for d in data[ri]]))
    for ci in range(c + 1):
        sum_row[ci] += data[ri] [ci]
print(" ".join([str(s) for s in sum_row]))

from pprint import pprint
pprint(data)
pprint(sum_row)

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

data = []
sum_row = [0] * (c + 1)

for ri in range(r):
    data.append([int(i) for i in input().split()])
    data[ri].append(sum(data[ri]))
    print(" ".join([str(d) for d in data[ri]]))
    for ci in range(c + 1):
        sum_row[ci] += data[ri][ci]
print(" ".join([str(s) for s in sum_row]))

Buggy python submission (verdict: Runtime Error):
r, c = [int(i) for i in input().split()]

data = []
sum_row = [0] * (c + 1)

for ri in range(r):
    data[ri].append([int(i) for i in input().split()])
    data[ri].append(sum(data[ri]))
    print(" ".join([str(d) for d in data[ri]]))
    for ci in range(c + 1):
        sum_row[ci] += data[ri][ci]
print(" ".join([str(s) for s in sum_row]))

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

data = []
sum_row = [0] * (c + 1)

for ri in range(r):
    data.append([int(i) for i in input().split()])
    data[ri].append(sum(data[ri]))
    print(" ".join([str(d) for d in data[ri]]))
    for ci in range(c + 1):
        sum_row[ci] += data[ri][ci]
print(" ".join([str(s) for s in sum_row]))
Buggy python submission (verdict: Runtime Error):
a = [str(i) for i in range('a, z')]
a.upper()

Fixed submission:
print(input().swapcase())
Buggy python submission (verdict: Runtime Error):
while True:
    data = int(input())
    if data == '0':
        break

    print(sum([str(i) for i in data]))

Fixed submission:
while True:
    data = input()
    if data == '0':
        break
 
    print(sum([int(i) for i in data]))

Buggy python submission (verdict: Runtime Error):
while True:
    data = int(input())
    if data == '0':
        break

    print([str[i] for i in data])

Fixed submission:
while True:
    data = input()
    if data == '0':
        break
 
    print(sum([int(i) for i in data]))

Buggy python submission (verdict: Runtime Error):
while True:
    data = int(input())
    if data == 0:
        break

    sum == 0
    while 

Fixed submission:
while True:
    data = input()
    if data == '0':
        break
 
    print(sum([int(i) for i in data]))
Buggy python submission (verdict: Runtime Error):
s = [input().string()]
print('endswith[a, start][e, end]')

Fixed submission:
s = input()
p = input()

s *= 2

if s.find(p) != -1:
    print("Yes")
else:
    print("No")

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

s *= 2

if s.finr(p) != -1:
    print("Yes")
else:
    print("No")

Fixed submission:
s = input()
p = input()

s *= 2

if s.find(p) != -1:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
a, b = [input(i) for i in input().split()]
print(a, b)

Fixed submission:
a, b = [int(i) for i in input().split()]
print(a * b, (a + b) * 2)
Buggy python submission (verdict: Runtime Error):
S = int(input())
s = S % 60
m = S // 60 % 60
h = S // 60 //60
ptint([0][1][2])

Fixed submission:
S = int(input())

s = S % 60
m = S // 60 % 60
h = S // 60 // 60
print(h,':',m,":",s , sep ="")
#print("{a}:{b}:{c}".format(h,m,s))

Buggy python submission (verdict: Runtime Error):
S = int(input())
s = S % 60
m = S // 60 % 60
h = S // 60 //60
ptint([0][1][2].fomat(h,m,s))

Fixed submission:
S = int(input())

s = S % 60
m = S // 60 % 60
h = S // 60 // 60
print(h,':',m,":",s , sep ="")
#print("{a}:{b}:{c}".format(h,m,s))

Buggy python submission (verdict: Runtime Error):
S = int(input())
s = S % 60
m = S // 60 % 60
h = S // 60 // 60
print([0][1][2].format(h,m,s))

Fixed submission:
S = int(input())

s = S % 60
m = S // 60 % 60
h = S // 60 // 60
print(h,':',m,":",s , sep ="")
#print("{a}:{b}:{c}".format(h,m,s))

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

s = S % 60
m = S // 60 % 60
h = S // 60 // 60
print(h,':',m,":",s ,")
#print("{a}:{b}:{c}".format(h,m,s))

Fixed submission:
S = int(input())

s = S % 60
m = S // 60 % 60
h = S // 60 // 60
print(h,':',m,":",s , sep ="")
#print("{a}:{b}:{c}".format(h,m,s))

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

s = S % 60
m = S // 60 % 60
h = S // 60 // 60
print(h,':',m,":",s,' )
#print("{a}:{b}:{c}".format(h,m,s))

Fixed submission:
S = int(input())

s = S % 60
m = S // 60 % 60
h = S // 60 // 60
print(h,':',m,":",s , sep ="")
#print("{a}:{b}:{c}".format(h,m,s))

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

s = S % 60
m = S // 60 % 60
h = S // 60 // 60
print(h,':',m,":",s,')
#print("{a}:{b}:{c}".format(h,m,s))

Fixed submission:
S = int(input())

s = S % 60
m = S // 60 % 60
h = S // 60 // 60
print(h,':',m,":",s , sep ="")
#print("{a}:{b}:{c}".format(h,m,s))

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

s = S % 60
m = S // 60 % 60
h = S // 60 // 60
print(h,':',m,":",s,""")
#print("{a}:{b}:{c}".format(h,m,s))

Fixed submission:
S = int(input())

s = S % 60
m = S // 60 % 60
h = S // 60 // 60
print(h,':',m,":",s , sep ="")
#print("{a}:{b}:{c}".format(h,m,s))

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

s = S % 60
m = S // 60 % 60
h = S // 60 // 60

print("{a}:{b}:{c}".format(h,m,s))

Fixed submission:
S = int(input())

s = S % 60
m = S // 60 % 60
h = S // 60 // 60
print(h,':',m,":",s , sep ="")
#print("{a}:{b}:{c}".format(h,m,s))
Buggy python submission (verdict: Runtime Error):
count = 1

While True:
    X = it(input())
    if x != 0:
        print("case {0}: {1}:.format(count, x)")
        count +=1
    

     else:
         break

Fixed submission:
import sys
 
c = 0
while True:
    i = int(sys.stdin.readline())
    if (i == 0):
        break
    c+=1
    print("Case " + str(c) + ":", i)

Buggy python submission (verdict: Runtime Error):
count = 1

While True:
    X = it(input())
    if x != 0:
        print("case {0}: {1}:.format(count, x)")
        count +=1
    

     else:
         break

Fixed submission:
import sys
 
c = 0
while True:
    i = int(sys.stdin.readline())
    if (i == 0):
        break
    c+=1
    print("Case " + str(c) + ":", i)

Buggy python submission (verdict: Runtime Error):
count = 1

While True:
    X = int(input())
    if x != 0:
        print("case {0}: {1}:.format(count, x)")
        count +=1
    

     else:
         break

Fixed submission:
import sys
 
c = 0
while True:
    i = int(sys.stdin.readline())
    if (i == 0):
        break
    c+=1
    print("Case " + str(c) + ":", i)

Buggy python submission (verdict: Runtime Error):
import abc
 
c = 0
while True:
    i = int(abc.stdin.readline())
    if (i == 0):
        break
    c+=1
    print("Case " + str(c) + ":", i)

Fixed submission:
import sys
 
c = 0
while True:
    i = int(sys.stdin.readline())
    if (i == 0):
        break
    c+=1
    print("Case " + str(c) + ":", i)
Buggy python submission (verdict: Runtime Error):
while True:
    (x, y) = [int(i) for i in sys.stdin.readline().split()]
    if x == 0 == y:
        break
    if x > y:
        z = x
        x = y
        y = z
 
    print(x, y)

Fixed submission:
import sys
while True:
    (x, y) = [int(i) for i in sys.stdin.readline().split()]
    if x == 0 == y:
        break
    if x > y:
        z = x
        x = y
        y = z
 
    print(x, y)
Buggy python submission (verdict: Runtime Error):
a, b, c = [input(i) for i in input().split()]

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

print(total)

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

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

print(total)

Buggy python submission (verdict: Runtime Error):
a, b, c = [input(i) for i in input().split()]

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

print(total)

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

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

print(total)

Buggy python submission (verdict: Runtime Error):
a, b, c = [input(i) for i in input().split()]

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

print(total)

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

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

print(total)

Buggy python submission (verdict: Runtime Error):
a, b, c = [int(i) for i in input().split()]

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

print(total)

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

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

print(total)
Buggy python submission (verdict: Runtime Error):
r = float(input())

s = r * r * math.pi
l = r * 2 * math.pi

print("{0:5f}{1:.5f}".format(s, l))

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

s = r * r * math.pi
l = (r + r)* math.pi

print('%.5f %.5f' % (s, l))

Buggy python submission (verdict: Runtime Error):
r = float(input())

s = r * r * math.pi
l = r * 2 * math.pi

print('%.5f %.5f' % (s, l))

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

s = r * r * math.pi
l = (r + r)* math.pi

print('%.5f %.5f' % (s, l))
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 + w) % 2 == 0:
                print('#', end='')
            

Fixed submission:
while True:
    h, w = map(int, input().strip().split())
    if h == w == 0: break
    for y in range(h):
        print(''.join('#.'[(x + y) % 2] for x in range(w)))
    print()

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 + w) % 2 == 0:
                print('#', end='')
            else:
                print('.' end='')


        print()
    print()

Fixed submission:
while True:
    h, w = map(int, input().strip().split())
    if h == w == 0: break
    for y in range(h):
        print(''.join('#.'[(x + y) % 2] for x in range(w)))
    print()
Buggy python submission (verdict: Runtime Error):
data = [
    "{0} {1}".format(s,r)
    for s in ('S', 'H', 'C', 'D')
    for r in range(1, 13, + 1)
    ]

count = int(input())
for c in range()
    card = input()
    data.remove(card)

print("\n".join(data))

Fixed submission:
cards = {
        'S': [0 for _ in range(13)],
        'H': [0 for _ in range(13)],
        'C': [0 for _ in range(13)],
        'D': [0 for _ in range(13)],
}
n = int(input())
for _ in range(n):
    (s, r) = input().split()
    cards[s][int(r) - 1] = 1
 
for s in ('S', 'H', 'C', 'D'):
    for r in range(13):
        if cards[s][r] == 0:
            print(s, r + 1)

Buggy python submission (verdict: Runtime Error):
data = [
    "{0} {1}".format(s,r)
    for s in ('S', 'H', 'C', 'D')
    for r in range(1, 13, + 1)
    ]

count = int(input())
for c in range()
    card = input()
    data.remove(card)

for c in data:
    print(c)

Fixed submission:
cards = {
        'S': [0 for _ in range(13)],
        'H': [0 for _ in range(13)],
        'C': [0 for _ in range(13)],
        'D': [0 for _ in range(13)],
}
n = int(input())
for _ in range(n):
    (s, r) = input().split()
    cards[s][int(r) - 1] = 1
 
for s in ('S', 'H', 'C', 'D'):
    for r in range(13):
        if cards[s][r] == 0:
            print(s, r + 1)

Buggy python submission (verdict: Runtime Error):
data = [
    "{0} {1}".format(s,r)
    for s in ('S', 'H', 'C', 'D')
    for r in range(1, 13, + 1)
    ]

count = int(input())
for c in range(count):
    card = input()
    data.remove(card)

for c in data:
    print(c)

Fixed submission:
cards = {
        'S': [0 for _ in range(13)],
        'H': [0 for _ in range(13)],
        'C': [0 for _ in range(13)],
        'D': [0 for _ in range(13)],
}
n = int(input())
for _ in range(n):
    (s, r) = input().split()
    cards[s][int(r) - 1] = 1
 
for s in ('S', 'H', 'C', 'D'):
    for r in range(13):
        if cards[s][r] == 0:
            print(s, r + 1)

Buggy python submission (verdict: Runtime Error):
data = [
    "{0} {1}".format(s, r)
    for s in ('S', 'H', 'C', 'D')
    for r in range(1, 13, + 1)
    ]

count = int(input())
for c in range(count):
    card = input()
    data.remove(card)

for c in data:
    print(c)

Fixed submission:
cards = {
        'S': [0 for _ in range(13)],
        'H': [0 for _ in range(13)],
        'C': [0 for _ in range(13)],
        'D': [0 for _ in range(13)],
}
n = int(input())
for _ in range(n):
    (s, r) = input().split()
    cards[s][int(r) - 1] = 1
 
for s in ('S', 'H', 'C', 'D'):
    for r in range(13):
        if cards[s][r] == 0:
            print(s, r + 1)
Buggy python submission (verdict: Runtime Error):
data = [
    [[0 for r in range(10)] for f in range(3)] for b in range(4)
]

#??\?????????????????????????????§????????????????????????????????????
n = int(input())
for _ in range(n):
    (b, f, r, v) = [int(i) for i in input().split()]
    data[b - 1][f - 1][r - 1] += v
 
for b in range(4):
    for f in range(3):
        for r in range(10):
         
for bi, b in enumerate(data):
    for f in b:
        for r in f:
            print(' {0}'.format(r), end='')

        print()

    if bi < 3:
        print('#' * 20)

Fixed submission:
data = [
    [[0 for r in range(10)] for f in range(3)] for b in range(4)
]

count = int(input())
for c in range(count):
    b, f, r, v = [int(i) for i in input().split()]
    data[b-1][f-1][r-1] += v


for bi, b in enumerate(data):
    for f in b:
        for r in f:
            print(' {0}'.format(r), end='')

        print()

    if bi < 3:
        print('#' * 20)
Buggy python submission (verdict: Runtime Error):
n, m = [int(i) for i in input().split()]

matrix = []
for ni in range(n):
    matrix.append([int(a) for a in input().split])

vector = []
for mi in range(m):
    vector.append(int(input()))


print(matrix)
print()
print(vector)

Fixed submission:
(n, m) = [int(i) for i in input().split()]
A = []
b = []
for i in range(n):
    A.append([int(j) for j in input().split()])
 
for i in range(m):
    b.append(int(input()))
 
for i in range(n):
    s = 0
    for j in range(m):
        s += A[i][j] * b[j]
    print(s)
Buggy python submission (verdict: Runtime Error):
while True:
if m == -1 or f == -1 or m + f < 30:
        print('F')
    elif m + f >= 80:
        print('A')
    elif m + f >= 65:
        print('B')
    elif m + f >= 50:
        print('C')
    elif m + f >= 30:
        print('C' if r >= 50 else 'D')

Fixed submission:
while True:
    (m, f, r) = [int(i) for i in input().split()]
    if m == f == r == -1:
        break
    total = m + f
    if m == -1 or f == -1 or total < 30:
        print('F')
    elif total < 50 and r < 50:
        print('D')
    elif total < 65:
        print('C')
    elif total < 80:
        print('B')
    else:
        print('A')

Buggy python submission (verdict: Runtime Error):
while True:
if m == -1 or f == -1 or m + f < 30:
        print('F')
    elif m + f >= 80:
        print('A')
    elif m + f >= 65:
        print('B')
    elif m + f >= 50:
        print('C')
    elif m + f >= 30:
        print('C' if r >= 50 else 'D')

Fixed submission:
while True:
    (m, f, r) = [int(i) for i in input().split()]
    if m == f == r == -1:
        break
    total = m + f
    if m == -1 or f == -1 or total < 30:
        print('F')
    elif total < 50 and r < 50:
        print('D')
    elif total < 65:
        print('C')
    elif total < 80:
        print('B')
    else:
        print('A')
Buggy python submission (verdict: Runtime Error):
r, c = [int(i) for i in input().split()]

data = []
sum_row = [0] * (c + 1)

for ri in range(r):
    data.append([int(i) for i in input.split()])
    data[ri].append(sum(data[ri]))
    print(" ",join(data[str(d) for d in data[ri]]))
    for ci in renge(c + 1):
        sum_row[ci] += data[ri][ci]

print(" ".join([str(s)for s in sum_row]))

from pprint import pprint
pprint(data)
ppint(sum_row)

Fixed submission:
(r, c) = [int(i) for i in input().split()]
src = []
for _ in range(r):
    row = [int(i) for i in input().split()]
    row.append(sum(row))
    src.append(row)
 
last_row = [0 for _ in range(c + 1)]
for rc in range(r):
    for cc in range(c+1):
        last_row[cc] += src[rc][cc]
 
src.append(last_row)
 
 
for rc in range(r + 1):
    print(' '.join([str(a) for a in src[rc]]))

Buggy python submission (verdict: Runtime Error):
r, c = [int(i) for i in input().split()]

data = []
sum_row = [0] * (c + 1)

for ri in range(r):
    data.append([int(i) for i in input.split()])
    data[ri].append(sum(data[ri]))
    print(" ",join(data[str(d) for d in data[ri]]))
    for ci in renge(c + 1):
        sum_row[ci] += data[ri][ci]

print(" ".join([str(s)for s in sum_row]))

Fixed submission:
(r, c) = [int(i) for i in input().split()]
src = []
for _ in range(r):
    row = [int(i) for i in input().split()]
    row.append(sum(row))
    src.append(row)
 
last_row = [0 for _ in range(c + 1)]
for rc in range(r):
    for cc in range(c+1):
        last_row[cc] += src[rc][cc]
 
src.append(last_row)
 
 
for rc in range(r + 1):
    print(' '.join([str(a) for a in src[rc]]))
Buggy python submission (verdict: Runtime Error):
print(input().swa

Fixed submission:
inputa = input()
 
print(inputa.swapcase())
Buggy python submission (verdict: Runtime Error):
while True:
    data = input()
    if data[0] == '0':
        break

    print(sum([int(i) for i in data]))

for str in iter(input, "0"):
  print(sum(int(c) for c in str))

Fixed submission:
for str in iter(input, "0"):
  print(sum(int(c) for c in str))

Buggy python submission (verdict: Runtime Error):
while True:
    data = input()
    if data[0] == '0':
        break

    print(sum([int(i) for i in data]))

for str in iter(input, "0"):
  print(sum(int(c) for c in str))

Fixed submission:
for str in iter(input, "0"):
  print(sum(int(c) for c in str))