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

n=int(input())
for _ in range(n):
    a=input()
    b=input()
    c=input()


cnt = 0
for i in range(n):
    if a[i] == b[i] == c[i]:
        continue
    elif a[i] == b[i] or b[i] == c[i] or c[i] == a[i]:
        cnt = cnt + 1
    else:
        cnt = cnt + 2
print(cnt)

Fixed submission:
import sys

n=int(sys.stdin.readline())
a=sys.stdin.readline()
b=sys.stdin.readline()
c=sys.stdin.readline()


cnt = 0
for i in range(n):
    if a[i] == b[i] == c[i]:
        continue
    elif a[i] == b[i] or b[i] == c[i] or c[i] == a[i]:
        cnt = cnt + 1
    else:
        cnt = cnt + 2
print(cnt)

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

n=int(sys.stdin.readline())
for _ in range(n):
    a=sys.stdin.readline()
    b=sys.stdin.readline()
    c=sys.stdin.readline()


cnt = 0
for i in range(n):
    if a[i] == b[i] == c[i]:
        continue
    elif a[i] == b[i] or b[i] == c[i] or c[i] == a[i]:
        cnt = cnt + 1
    else:
        cnt = cnt + 2
print(cnt)

Fixed submission:
import sys

n=int(sys.stdin.readline())
a=sys.stdin.readline()
b=sys.stdin.readline()
c=sys.stdin.readline()


cnt = 0
for i in range(n):
    if a[i] == b[i] == c[i]:
        continue
    elif a[i] == b[i] or b[i] == c[i] or c[i] == a[i]:
        cnt = cnt + 1
    else:
        cnt = cnt + 2
print(cnt)

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

n=int(sys.stdin.readline())
M=[]
for _ in range(n):
    M.append(sys.stdin.readline())

cnt = 0
for i in range(n):
    if M[0][i] == M[1][i] == M[2][i]:
        continue
    elif M[0][i] == M[1][i] or M[1][i] == M[2][i] or M[2][i] == M[0][i]:
        cnt = cnt + 1
    else:
        cnt = cnt + 2
print(cnt)

Fixed submission:
import sys

n=int(sys.stdin.readline())
a=sys.stdin.readline()
b=sys.stdin.readline()
c=sys.stdin.readline()


cnt = 0
for i in range(n):
    if a[i] == b[i] == c[i]:
        continue
    elif a[i] == b[i] or b[i] == c[i] or c[i] == a[i]:
        cnt = cnt + 1
    else:
        cnt = cnt + 2
print(cnt)

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

n=int(sys.stdin.readline())
M=[]
for _ in range(n):
    M.append(sys.stdin.readline())

cnt = 0
for i in range(n):
    tmp = 0
    if M[0][i] != M[1][i]:
        tmp = tmp + 1
    if M[0][i] != M[2][i]:
        tmp = tmp + 1
    if M[1][i] == M[2][i] and tmp == 2:
        tmp = tmp - 1
    cnt = cnt + tmp
print(cnt)

Fixed submission:
import sys

n=int(sys.stdin.readline())
a=sys.stdin.readline()
b=sys.stdin.readline()
c=sys.stdin.readline()


cnt = 0
for i in range(n):
    if a[i] == b[i] == c[i]:
        continue
    elif a[i] == b[i] or b[i] == c[i] or c[i] == a[i]:
        cnt = cnt + 1
    else:
        cnt = cnt + 2
print(cnt)

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

n=int(sys.stdin.readline())
M=[]
for _ in range(n):
    M.append(sys.stdin.readline())

cnt = 0
for i in range(n):
    tmp = 0
    if M[0][i] != M[1][i]:
        tmp = tmp + 1
    if M[0][i] != M[2][i]:
        tmp = tmp + 1
    if M[1][i] == M[2][i] and tmp == 2:
        tmp = tmp - 1
    cnt = cnt + tmp
print(cnt)

Fixed submission:
import sys

n=int(sys.stdin.readline())
a=sys.stdin.readline()
b=sys.stdin.readline()
c=sys.stdin.readline()


cnt = 0
for i in range(n):
    if a[i] == b[i] == c[i]:
        continue
    elif a[i] == b[i] or b[i] == c[i] or c[i] == a[i]:
        cnt = cnt + 1
    else:
        cnt = cnt + 2
print(cnt)