Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
import math

x1,y1,x2,y2 = map(int,input().split())

x_dis = abs(x1-x2)
y_dis = abs(y1-y2)

hypo = math.sqrt(x_dis**2 + y_dis**2)
dis = round(hypo,8)

print(dis)


Fixed submission:
import math

x1,y1,x2,y2 = map(float,input().split())

x_dis = abs(x1-x2)
y_dis = abs(y1-y2)

hypo = math.sqrt(x_dis**2 + y_dis**2)
dis = round(hypo,8)

print(dis)
Buggy python submission (verdict: Runtime Error):
n,m,l = input().split()

n = int(n)
m = int(m)
l = int(l)

matrix_A = [[0]*m for i in range(n)]
matrix_B = [[0]*n for j in range(l)]
matrix_C = [[0]*l for k in range(n)]
box_a = []
box_b = []
box_c = 0

for a in range(n):
    
    box_a = input().split()
    
    for b in range(m):
        
        matrix_A[a][b] = int(box_a[b])
        
    
for c in range(m):
    
    box_b = input().split()
    
    for d in range(l):
        
        matrix_B[c][d] = int(box_b[d])
        
            
for e in range(n):
    
    for f in range(l):
        
        for g in range(m):
            box_c += matrix_A[e][g] * matrix_B[g][f]
        
        
        matrix_C[e][f] = box_c
        box_c = 0
    
    print(" ".join(map(str,matrix_C[e])))


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

n = int(n)
m = int(m)
l = int(l)

matrix_A = [[0]*m for i in range(n)]
matrix_B = [[0]*l for j in range(m)]
matrix_C = [[0]*l for k in range(n)]
box_a = []
box_b = []
box_c = 0

for a in range(n):
    
    box_a = input().split()
    
    for b in range(m):
        
        matrix_A[a][b] = int(box_a[b])
        
    
for c in range(m):
    
    box_b = input().split()
    
    for d in range(l):
        
        matrix_B[c][d] = int(box_b[d])
        
            
for e in range(n):
    
    for f in range(l):
        
        for g in range(m):
            box_c += matrix_A[e][g] * matrix_B[g][f]
        
        
        matrix_C[e][f] = box_c
        box_c = 0
    
    print(" ".join(map(str,matrix_C[e])))
Buggy python submission (verdict: Runtime Error):
alp_count = [0]*26

while True:

    string = str(input()).lower()

    alp = [chr(ord("a")+i) for i in range(26)]

    c = 0

    for j in range(26):
        c = string.count(alp[j])
        alp_count[j] += c
        print("%s : %d"%(alp[j],c))


Fixed submission:
alp_count = [0]*26



string = open(0).read()
string = string.lower()


alp = [chr(ord("a")+i) for i in range(26)]

c = 0

for j in range(26):
    c = string.count(alp[j])
    alp_count[j] += c
    print("%s : %d"%(alp[j],alp_count[j]))
Buggy python submission (verdict: Runtime Error):
x1, y1, x2, y2 = map(int, input().split())
print('%.8f' % (((x2 - x1)**2 + (y2 - y1)**2))**0.5)


Fixed submission:
x1, y1, x2, y2 = map(float, input().split())
print('%.8f' % (((x2 - x1)**2 + (y2 - y1)**2))**0.5)
Buggy python submission (verdict: Runtime Error):
alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
			'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
			'w','x', 'y', 'z']

dic = {}
for c in alphabet:
	dic[c] = 0

while True:
	string = list(input().rstrip().lower())
	if string == []: break

	for c in string:
		if c in alphabet:
			dic[c] = dic[c] + 1

for key in dic:
	print('{} : {}'.format(key, dic[key]))


Fixed submission:
alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
			'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
			'w','x', 'y', 'z']

dic = {}
for c in alphabet:
	dic[c] = 0

while True:
	try:
		string = list(input().rstrip().lower())
	except EOFError:
		break

	for c in string:
		if c in alphabet:
			dic[c] = dic[c] + 1

for key in dic:
	print('{} : {}'.format(key, dic[key]))
Buggy python submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!

import math
x1, y1, x2, y2 = map(int, input().split())
result = math.sqrt( (x2-x1) * (x2-x1) + (y2-y1) * (y2-y1) )
print(result)


Fixed submission:
# coding: utf-8
# Your code here!

import math
x1, y1, x2, y2 = map(float, input().split())
result = math.sqrt( (x2-x1) * (x2-x1) + (y2-y1) * (y2-y1) )
print(result)
Buggy python submission (verdict: Runtime Error):
# coding: utf-8
# Your code here!
# ITP1_4_B

import math

r=int(input())

print(r*r*math.pi)
print(r*2*math.pi)


Fixed submission:
# coding: utf-8
# Your code here!
# ITP1_4_B

import math

r=float(input())
print(r*r*math.pi,r*2*math.pi)
Buggy python submission (verdict: Runtime Error):
#coding: UTF-8
import math

p = list(map(int, input().split()))
dis = math.sqrt((p[2] - p[0]) + (p[3] - p[1]))

print(dis)


Fixed submission:
#coding: UTF-8
import math

p = list(map(float, input().split()))
# dis = math.sqrt(pow((abs(p[2]) - abs(p[0])), 2) + pow((abs(p[3]) - abs(p[1])), 2))
dis = math.sqrt(pow((p[2] - p[0]), 2) + pow((p[3]) - (p[1]), 2))

print(round(dis, 8))

Buggy python submission (verdict: Runtime Error):
#coding: UTF-8
import math

p = list(map(float, input().split()))
dis = math.sqrt((abs(p[2]) - abs(p[0]))^2 + (abs(p[3]) - abs(p[1]))^2)

print(round(dis, 8))



Fixed submission:
#coding: UTF-8
import math

p = list(map(float, input().split()))
# dis = math.sqrt(pow((abs(p[2]) - abs(p[0])), 2) + pow((abs(p[3]) - abs(p[1])), 2))
dis = math.sqrt(pow((p[2] - p[0]), 2) + pow((p[3]) - (p[1]), 2))

print(round(dis, 8))
Buggy python submission (verdict: Runtime Error):
#coding: UTF-8
import math

A, B, DEGREE = list(map(int, input().split()))
RADIAN = math.radians(DEGREE)

C = sqrt(pow(A, 2)*pow(B, 2) - 2*A*B*math.cos(RADIAN))
S = A*B*math.sin(RADIAN)/2
H = A*math.sin(RADIAN)

print("%.10f %.10f %.10f"%(S, A+B+C, h))


Fixed submission:
#coding: UTF-8
import math

A, B, DEGREE = list(map(int, input().split()))
RADIAN = math.radians(DEGREE)

C = math.sqrt(A*A+B*B-2*A*B*math.cos(RADIAN))
S =A*B*math.sin(RADIAN)/2.0
H = 2*S/A

print("%.10f %.10f %.10f"%(S, A+B+C, H))
Buggy python submission (verdict: Runtime Error):
#coding: UTF-8
import statistics as st

while True:
    N = int(input())
    if N = 0:
        break
    buf = list(map(float, input().split()))
    sd = st.pstdev(buf)
    print("%.8f"%sd)



Fixed submission:
#coding: UTF-8
import statistics as st

while True:
    N = int(input())
    if N == 0:
        break
    buf = list(map(float, input().split()))
    sd = st.pstdev(buf)
    print("%.8f"%sd)
Buggy python submission (verdict: Runtime Error):
int(input(x))**3

Fixed submission:
int = int(input())

print(int**3)

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

Fixed submission:
int = int(input())

print(int**3)

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

Fixed submission:
int = int(input())

print(int**3)

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

Fixed submission:
int = int(input())

print(int**3)

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

Fixed submission:
int = int(input())

print(int**3)

Buggy python submission (verdict: Runtime Error):
a = input('>')
b = int('a')
c = b**3
print c

Fixed submission:
int = int(input())

print(int**3)

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

Fixed submission:
int = int(input())

print(int**3)
Buggy python submission (verdict: Runtime Error):
l = raw_input().split()
print l[0] * l[1]

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

print(i[0]*i[1], i[0]*2+i[1]*2)

Buggy python submission (verdict: Runtime Error):
l = raw_input().split()
print l[0]*l[1]

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

print(i[0]*i[1], i[0]*2+i[1]*2)

Buggy python submission (verdict: Runtime Error):
l = raw_input().split()
print l[0]*l[1], 2*l[0]+2*l[1]

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

print(i[0]*i[1], i[0]*2+i[1]*2)
Buggy python submission (verdict: Runtime Error):
a = int(input())/3600
a_p = int(input())%3600
b = a_p/60
b_p = a_p%60
print a,":",b,":",b_p

Fixed submission:
int = int(input())

h = int // 3600
h_mod = int % 3600

m = h_mod // 60
s = h_mod % 60

print(h, ":", m, ":", s, sep='')

Buggy python submission (verdict: Runtime Error):
a = int("input()")/3600
a_p = int(input())%3600
b = a_p/60
b_p = a_p%60
print a,":",b,":",b_p

Fixed submission:
int = int(input())

h = int // 3600
h_mod = int % 3600

m = h_mod // 60
s = h_mod % 60

print(h, ":", m, ":", s, sep='')

Buggy python submission (verdict: Runtime Error):
list[0] = int(input())/3600
a_p = int(input())%3600
list[1] = a_p/60
list[2] = a_p%60

print ":".join(list)

Fixed submission:
int = int(input())

h = int // 3600
h_mod = int % 3600

m = h_mod // 60
s = h_mod % 60

print(h, ":", m, ":", s, sep='')

Buggy python submission (verdict: Runtime Error):
list = [0] * 4
a = int(input())
list[0] = a/3600
a_p = a%3600
list[1] = a_p/60
list[2] = a_p%60
print ":".join(list)

Fixed submission:
int = int(input())

h = int // 3600
h_mod = int % 3600

m = h_mod // 60
s = h_mod % 60

print(h, ":", m, ":", s, sep='')

Buggy python submission (verdict: Runtime Error):
list = [0] * 4
a = int(input())
list[0] = a/3600
a_p = a%3600
list[1] = a_p/60
list[2] = a_p%60
print ":".join(list)

Fixed submission:
int = int(input())

h = int // 3600
h_mod = int % 3600

m = h_mod // 60
s = h_mod % 60

print(h, ":", m, ":", s, sep='')

Buggy python submission (verdict: Runtime Error):
list = [0] * 4
a = int(input())
list[0] = a/3600
a_p = a%3600
list[1] = a_p/60
list[2] = a_p%60
print ":".join(list)

Fixed submission:
int = int(input())

h = int // 3600
h_mod = int % 3600

m = h_mod // 60
s = h_mod % 60

print(h, ":", m, ":", s, sep='')

Buggy python submission (verdict: Runtime Error):
list = [0] * 4
a = int(input())
list[0] = a/3600
a_p = a%3600
list[1] = a_p/60
list[2] = a_p%60
print ":".int(list)

Fixed submission:
int = int(input())

h = int // 3600
h_mod = int % 3600

m = h_mod // 60
s = h_mod % 60

print(h, ":", m, ":", s, sep='')
Buggy python submission (verdict: Runtime Error):
l = [0] * 2
l = raw_input().split()
a = l[0]
b = l[1]
if(a == b):
print a, "=", b
elif(a < b):
print a, "<", b
else:
print a,">", b

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

if i[0] > i[1]:
    print("a > b")
elif i[0] < i[1]:
    print("a < b")
else:
    print("a == b")

Buggy python submission (verdict: Runtime Error):
l = [0] * 2
l = raw_input().split()
a = l[0]
b = l[1]
if a == b:
print a, "=", b
elif a < b:
print a, "<", b
else:
print a,">", b

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

if i[0] > i[1]:
    print("a > b")
elif i[0] < i[1]:
    print("a < b")
else:
    print("a == b")

Buggy python submission (verdict: Runtime Error):
l = [0] * 2
l = raw_input().split()
a = l[0]
b = l[1]
if a == b:
print a, "=", b
elif a < b:
print a, "<", b
else:
print a,">", b

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

if i[0] > i[1]:
    print("a > b")
elif i[0] < i[1]:
    print("a < b")
else:
    print("a == b")

Buggy python submission (verdict: Runtime Error):
l = [0] * 2
l = raw_input().split()
a = l[0]
b = l[1]
if a == b:
print a, "=", b
elif a < b:
print a, "<", b
else:
print a, ">", b

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

if i[0] > i[1]:
    print("a > b")
elif i[0] < i[1]:
    print("a < b")
else:
    print("a == b")
Buggy python submission (verdict: Runtime Error):
#coding: UTF-8

word = input()
cnt = 0

while True:
    sentence = list(map(str, input().split()))
    for i in range(len(sentence)):
        if sentence[i] == 'END_OF_TEXT':
            break
        elif word == sentence[i]:
            cnt += 1
        else:
            pass

print(ctn)


Fixed submission:
#coding: UTF-8

word = input().upper()
cnt = 0

while True:
    sentence = list(map(str, input().split()))
    if 'END_OF_TEXT' in sentence:
        break
    for i in range(len(sentence)):
        if word == sentence[i].upper():
            cnt += 1

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

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

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

Fixed submission:
S = int(input())

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

print("{0}:{1}:{2}".format(h,m,s))
Buggy python submission (verdict: Runtime Error):
in = input().split(' ')

W = int(in[0])
H = int(in[1])
x = int(in[2])
y = int(in[3])
r = int(in[4])

if x - r >= 0 and y - r >= 0 and x + r <= W and y + r <= H:
    print('Yes')
else:
   print('No')

Fixed submission:
import sys

(W, H, x, y, r) = [int(i) for i in sys.stdin.readline().split(' ')]

if x - r >= 0 and x + r <= W and y - r >= 0 and y + r <= H:
    print("Yes")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
(a, b, c) [int(x) for x in input().split()]

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

print(count)

Fixed submission:
import sys

(a, b, c) = [int(i) for i in sys.stdin.readline().split(' ')]

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

print(divisorCount)

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):
    if c % d == 0:
        total += 1

print(total)

Fixed submission:
import sys

(a, b, c) = [int(i) for i in sys.stdin.readline().split(' ')]

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

print(divisorCount)
Buggy python submission (verdict: Runtime Error):
from math import pi

r = int(input())

s = r * r * pi
l = r * 2 * pi

print(s, l)

Fixed submission:
import sys
import math
from decimal import Decimal

r = Decimal(sys.stdin.readline())
area = r ** Decimal(2) * Decimal(math.pi)
circumference = r * Decimal(2) * Decimal(math.pi)

print(round(area, 5), round(circumference, 5))

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

r = int(input())

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

print(s, l)

Fixed submission:
import sys
import math
from decimal import Decimal

r = Decimal(sys.stdin.readline())
area = r ** Decimal(2) * Decimal(math.pi)
circumference = r * Decimal(2) * Decimal(math.pi)

print(round(area, 5), round(circumference, 5))

Buggy python submission (verdict: Runtime Error):
pi = 3.141592653589793

r = int(input())

s = r * r * pi
l = r * 2 * pi

print(s, l)

Fixed submission:
import sys
import math
from decimal import Decimal

r = Decimal(sys.stdin.readline())
area = r ** Decimal(2) * Decimal(math.pi)
circumference = r * Decimal(2) * Decimal(math.pi)

print(round(area, 5), round(circumference, 5))

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

r = int(sys.stdin.readline())
area = r ** 2 * math.pi
circumference = r * 2 * math.pi

print(round(area, 5), round(circumference, 5))

Fixed submission:
import sys
import math
from decimal import Decimal

r = Decimal(sys.stdin.readline())
area = r ** Decimal(2) * Decimal(math.pi)
circumference = r * Decimal(2) * Decimal(math.pi)

print(round(area, 5), round(circumference, 5))
Buggy python submission (verdict: Runtime Error):
input()
data = input().split()

minimum = min(data)
maximum = max(data)
total = sum(data)

print(minimum, maximum, total)

Fixed submission:
from sys import stdin

count = int(stdin.readline())
ns = [int(n) for n in stdin.readline().split(' ')]
minimum = None
maximum = None
total = 0

for n in ns:
    if minimum == None or minimum > n:
        minimum = n
    if maximum == None or maximum < n:
        maximum = n

    total += n

print(minimum, maximum, total)
Buggy python submission (verdict: Runtime Error):
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(x) for x in input().split()]
    data[b][f][r] += v

for b in range(4):
    for f in range(3):
        for r in range(10):
            print(data[b][f][r], end=' ')
        print()
    print('#' * 20) if b < 4 - 1 else print()

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):
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(x) for x 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):
            print(data[b][f][r], end=' ')
        print()
    print('#' * 20) if b < 4 - 1 else pass

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):
while True:
    (n, x) = [int(i) for i in input().split()]
    if n == x == 0:
        break

    dataset = []
    for a in range(1, n + 1):
        for b in range(a + 1, n + 1):
            for c in range(b + 1, n + 1):
                if sum([a,b,c]) == x:
                    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):
while True:
    (n, x) = [int(i) for i in input().split()]
    if n == x == 0:
        break

    count = 0
    for a in range(x, 0, step=-1):
        for b in range(a - 1, 0, step=-1):
            if sum(a,b) > x:
                break
            for c in range(b - 1, 0, step=-1):
                if sum(a,b,c) == x:
                    count += 1
'''
    limit = n if n < x else x
    for a in range(1, limit + 1):
        for b in range(a + 1, limit + 1):
            for c in range(b + 1, limit + 1):
                if sum([a,b,c]) == x:
                    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):
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):
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):
n, m, l = [int(i) for i in input().split()]

A = []
B = []
C = []

for ni in range(n):
    A.append([int(i) for i in input().split()])

for mi in range(m):
    B.append([int(i) for i in input().split()])

for i in range(n):
    C.append([])
    for j in range(l):
        C[i].append(0)
        for k in range(m):
            C[i][j] += A[i][k] * B[k][j]

for li in range(l):
    print(" ".join(C[li]))

Fixed submission:
n, m, l = [int(i) for i in input().split()]

A = []
B = []
C = []

for ni in range(n):
    A.append([int(i) for i in input().split()])

for mi in range(m):
    B.append([int(i) for i in input().split()])

for i in range(n):
    C.append([])
    for j in range(l):
        C[i].append(0)
        for k in range(m):
            C[i][j] += A[i][k] * B[k][j]

for ni in range(n):
    print(" ".join([str(s) for s in C[ni]]))

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

A = []
B = []
C = []

for ni in range(n):
    A.append([int(i) for i in input().split()])

for mi in range(m):
    B.append([int(i) for i in input().split()])

for i in range(n):
    C.append([])
    for j in range(l):
        C[i].append(0)
        for k in range(m):
            C[i][j] += A[i][k] * B[k][j]

for li in range(l):
    print(" ".join([str(s) for s in C[li]]))

Fixed submission:
n, m, l = [int(i) for i in input().split()]

A = []
B = []
C = []

for ni in range(n):
    A.append([int(i) for i in input().split()])

for mi in range(m):
    B.append([int(i) for i in input().split()])

for i in range(n):
    C.append([])
    for j in range(l):
        C[i].append(0)
        for k in range(m):
            C[i][j] += A[i][k] * B[k][j]

for ni in range(n):
    print(" ".join([str(s) for s in C[ni]]))
Buggy python submission (verdict: Runtime Error):
import string

count = {x: 0 for x in string.ascii_lowercase}

s = input().lower()

for c in s:
    if 'a' <= c <= 'z':
        count[c] += 1

for key, num in count:
    print("{0} : {1}".format(key, num))

Fixed submission:
import string

count = {x: 0 for x in string.ascii_lowercase}
lines = ""

while True:
    try:
        lines += input().lower()
    except EOFError:
        break

for c in lines:
    if 'a' <= c <= 'z':
        count[c] += 1

for key in string.ascii_lowercase:
    print("{0} : {1}".format(key, count[key]))
Buggy python submission (verdict: Runtime Error):
s = input()
q = int(input())

for qi in range(q):
    command = input().split()

    a = command[1]
    b = command[2]
    if command[0] == 'print':
        print(s[a:b + 1])
    elif command[0] == 'reverse':
        s = s[:a] + reversed(s[a:b + 1]) + s[b + 1:]
    else:
        p = command[3]
        s = s[:a] + p + s[b + 1:]

Fixed submission:
s = input()
q = int(input())

for qi in range(q):
    command = input().split()

    a = int(command[1])
    b = int(command[2])
    if command[0] == 'print':
        print(s[a:b + 1])
    elif command[0] == 'reverse':
        s = s[:a] + s[a:b + 1][::-1] + s[b + 1:]
    else:
        p = command[3]
        s = s[:a] + p + s[b + 1:]
Buggy python submission (verdict: Runtime Error):
import math

(x1, y1, x2, y2) = int(input().split())
#distance = math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)
distance - math.hypot((x2 - x1), (y2 - y1))
print('{0:.5f}'.format(distance))

Fixed submission:
import math

(x1, y1, x2, y2) = [float(i) for i in input().split()]
#distance = math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)
distance = math.hypot((x2 - x1), (y2 - y1))
print('{0:.5f}'.format(distance))

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

(x1, y1, x2, y2) = [float(i) for i in input().split()]
#distance = math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)
distance - math.hypot((x2 - x1), (y2 - y1))
print('{0:.5f}'.format(distance))

Fixed submission:
import math

(x1, y1, x2, y2) = [float(i) for i in input().split()]
#distance = math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)
distance = math.hypot((x2 - x1), (y2 - y1))
print('{0:.5f}'.format(distance))