Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
t=0
h=0
for i in range(int(input())):
    l=input().split()
    if l[0]=l[1]:
        t+=1
        h+=1
    elif l[0]>l[1]: t+=3
    else: h+=3
print(t,h)

Fixed submission:
t=0
h=0
for i in range(int(input())):
    l=input().split()
    if l[0]==l[1]:
        t+=1
        h+=1
    elif l[0]>l[1]: t+=3
    else: h+=3
print(t,h)
Buggy python submission (verdict: Runtime Error):
import math

x1, y1, x2, y2 = [int(s) for s in input().split()]
print(math.sqrt((math.fabs(x1 - x2) ** 2) + (math.fabs(y1 - y2) ** 2)))

Fixed submission:
import math

x1, y1, x2, y2 = [float(s) for s in input().split()]
print(math.sqrt((math.fabs(x1 - x2) ** 2) + (math.fabs(y1 - y2) ** 2)))
Buggy python submission (verdict: Runtime Error):
s = input()
print(s ** 3)

Fixed submission:
x = input()
print(int(x) ** 3)
Buggy python submission (verdict: Runtime Error):
r = int(input())
import math
print('%.6f %.6f' % (math.pi * (r ** 2), math.pi * r * 2))

Fixed submission:
r = float(input())
import math
print('%.6f %.6f' % (math.pi * (r ** 2), math.pi * r * 2))
Buggy python submission (verdict: Runtime Error):
alpha = 'abcdefghijklmnopqrstuvwxyz'
m = {k:0 for k in alpha}

while True:
    line = input()
    if not line:
        break;
    for s in line:
        s = s.lower()
        if s in m:
            m[s] += 1

for s in alpha:
    print('%s : %d' % (s, m[s]))

Fixed submission:
import sys

alpha = 'abcdefghijklmnopqrstuvwxyz'
m = {k:0 for k in alpha}
q = ''
for line in sys.stdin:
    q += line

for s in q:
    s = s.lower()
    if s in m:
        m[s] += 1
    
for s in alpha:
    print('%s : %d' % (s, m[s]))

Buggy python submission (verdict: Runtime Error):
alpha = 'abcdefghijklmnopqrstuvwxyz'
m = {k:0 for k in alpha}

while True:
    line = input()
    if not line:
        break;
    for s in line:
        s = s.lower()
        if s in m:
            m[s] += 1

for s in alpha:
    print('%s : %d' % (s, m[s]))

Fixed submission:
import sys

alpha = 'abcdefghijklmnopqrstuvwxyz'
m = {k:0 for k in alpha}
q = ''
for line in sys.stdin:
    q += line

for s in q:
    s = s.lower()
    if s in m:
        m[s] += 1
    
for s in alpha:
    print('%s : %d' % (s, m[s]))
Buggy python submission (verdict: Runtime Error):
x = input('sample1:')
x = x**3
print(x)



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

Buggy python submission (verdict: Runtime Error):

x = x**3
print(x)



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


Fixed submission:
x,y=map(int, input().split())
print(x*y,2*(x+y))

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

print(x*y)
print(2*x+2*y)



Fixed submission:
x,y=map(int, input().split())
print(x*y,2*(x+y))

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


print((x*y), (2*x+2*y))



Fixed submission:
x,y=map(int, input().split())
print(x*y,2*(x+y))
Buggy python submission (verdict: Runtime Error):
count = 0
while true:
    set = int(input())
    count +=1
    if set == 0:
        break
    print('Case {}: {}'.format(count, set))



Fixed submission:
c = 0
while True:
    x = int(input()); c += 1
    if x == 0: break
    print("Case {}: {}".format(c, x))

Buggy python submission (verdict: Runtime Error):
i = 0
while True:
    x = int(input())
    i +=1
    if set == 0:
        break
    print('Case {}: {}'.format(i,x))



Fixed submission:
c = 0
while True:
    x = int(input()); c += 1
    if x == 0: break
    print("Case {}: {}".format(c, x))

Buggy python submission (verdict: Runtime Error):
count = 0
while True:
    set = int(input()):
    count +=1
    if set == 0:
        break
    print('Case {0}:{1}'.format(count,set))



Fixed submission:
c = 0
while True:
    x = int(input()); c += 1
    if x == 0: break
    print("Case {}: {}".format(c, x))
Buggy python submission (verdict: Runtime Error):
import math
r =  int(input())
print("{0:.5f}".format(r*r*math.pi))
print("{0:.5f}".format(2*r*math.pi))



Fixed submission:
import math
r = float(input())
print("{0:.5f}".format(r*r*math.pi))
print("{0:.5f}".format(2*r*math.pi))
Buggy python submission (verdict: Runtime Error):
import math
x1, y1, x2, y2 = map(float, input().split())  
 print(math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2))


Fixed submission:
from math import sqrt
x1, y1, x2, y2 = map(float, input().split())  
 
print(sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2))

Buggy python submission (verdict: Runtime Error):
from math import sort
x1, y1, x2, y2 = map(float, input().split())  
 print(math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2))


Fixed submission:
from math import sqrt
x1, y1, x2, y2 = map(float, input().split())  
 
print(sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2))
Buggy python submission (verdict: Runtime Error):
a, b = input().split()
x = int(a)
y = int(b)

if x < y:
    print("a < b")
elif x > y:
    print("a > b")
elif x == y:
    print("a == b")
    


Fixed submission:
a, b, c, d, f = input().split()
lw = int(a)
lh = int(b)
x = int(c)
y = int(d)
r = int(f)

if x - r >= 0 and x + r <= lw:
    if y - r >= 0 and y + r <= lh:
        print("Yes")
    else:
        print("No")
else:
    print("No")

Buggy python submission (verdict: Runtime Error):
a, b = input().split()
x = int(a)
y = int(b)

if x < y:
    print("a < b")
elif x > y:
    print("a > b")
elif x == y:
    print("a == b")
    


Fixed submission:
a, b, c, d, f = input().split()
lw = int(a)
lh = int(b)
x = int(c)
y = int(d)
r = int(f)

if x - r >= 0 and x + r <= lw:
    if y - r >= 0 and y + r <= lh:
        print("Yes")
    else:
        print("No")
else:
    print("No")
Buggy python submission (verdict: Runtime Error):
x, y, z = input().split()
a = int(x)
b = int(y)
c = int(z)

count = 0
num = a
    
while num <= b:
    if c % num == 0:
        count += 1
    else:
        pass
    num += 1
    
print(count)


Fixed submission:
x, y = input().split()
a = int(x)
b = int(y)

d = int(a / b)
e = int(a % b)
f = "{0:.8f}".format(a / b)

print(d, e, f)
Buggy python submission (verdict: Runtime Error):
#coding: utf-8
import math

x1, y1, x2, y2 = (int(i) for i in input().split())
print(math.sqrt((x2-x1)+(y2-y1)))


Fixed submission:
#coding: utf-8
import math

x1, y1, x2, y2 = (float(i) for i in input().split())
print(math.sqrt((x2-x1)**2+(y2-y1)**2))
Buggy python submission (verdict: Runtime Error):
#coding: utf-8

a, b = (int(i) for i in input().split())

print(int(a / b) , end = ' ')
print(a % b , end = ' ')
print("{: 0<7.5}".format(float(a) / float(b)))


Fixed submission:
#coding: utf-8

a, b = (int(i) for i in input().split())

print(int(a / b) , end = ' ')
print(a % b , end = ' ')
print(format(float(a) / float(b), ".7f"))
Buggy python submission (verdict: Runtime Error):
#coding:utf-8
import math

r = int(input())

print(str(r * 2 * math.pi) + " " + str(r ** 2 * math.pi))


Fixed submission:
#coding:utf-8
import math

r = float(input())

print(str(format(r ** 2 * math.pi, ".6f")) + " " + str(format(r * 2 * math.pi, ".6f")))

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

r = int(input())

print(str(format(r * 2 * math.pi, ".6f")) + " " + str(format(r ** 2 * math.pi, ".6f")))


Fixed submission:
#coding:utf-8
import math

r = float(input())

print(str(format(r ** 2 * math.pi, ".6f")) + " " + str(format(r * 2 * math.pi, ".6f")))
Buggy python submission (verdict: Runtime Error):
#coding: utf-8

n, m, l = (int(i) for i in input().split())
nm = [[0 for i in range(m)] for j in range(n)]
ml = [[0 for i in range(l)] for j in range(m)]
nl = [[0 for i in range(l)] for j in range(n)]

for i in range(n):
    nm[i] = input().split()

for i in range(n):
    for j in range(m):
        nm[i][j] = int(nm[i][j])

for i in range(m):
    ml[i] = input().split()

for i in range(m):
    for j in range(l):
        ml[i][j] = int(ml[i][j])


for i in range(n):
    for j in range(l):
        for k in range(m):
            nl[j][i] += nm[i][k] * ml[k][j]

for i in range(n):
    for j in range(l):
        print(nl[j][i], end = ' ' if j != l-1 else '\n')


Fixed submission:
#coding: utf-8

n, m, l = (int(i) for i in input().split())
nm = [[0 for i in range(m)] for j in range(n)]
ml = [[0 for i in range(l)] for j in range(m)]
nl = [[0 for i in range(l)] for j in range(n)]

for i in range(n):
    nm[i] = input().split()

for i in range(n):
    for j in range(m):
        nm[i][j] = int(nm[i][j])

for i in range(m):
    ml[i] = input().split()

for i in range(m):
    for j in range(l):
        ml[i][j] = int(ml[i][j])


for i in range(n):
    for j in range(l):
        for k in range(m):
            nl[i][j] += nm[i][k] * ml[k][j]

for i in range(n):
    for j in range(l):
        print(nl[i][j], end = ' ' if j != l-1 else '\n')
Buggy python submission (verdict: Runtime Error):
import math

a,b,C = map(int, raw_input())
c = math.sqrt(a*a + b*b - 2*a*b*math.cos(math.radians(C)))

S = (a * b * math.sin(math.radians(C))) / 2
L = a + b + c
h = (S * 2) / a

print("%f" % S)
print("%f" % L)
print("%f" % h)


Fixed submission:
import math
e=map(float,raw_input().split())
a=e[0]
b=e[1]
C=math.radians(e[2])
c=(a**2+b**2-2*a*b*math.cos(C))**0.5
h=b*math.sin(C)
S=h*a*0.5
L=a+b+c
print S
print L
print h

Buggy python submission (verdict: Runtime Error):

import math

a,b,C = map(int, raw_input())
c = math.sqrt(a*a + b*b - 2*a*b*math.cos(math.radians(C)))

S = (a * b * math.sin(math.radians(C))) / 2
L = a + b + c
h = (S * 2) / a

print("%f" % (S, ))
print("%f" % (L, ))
print("%f" % (h, ))


Fixed submission:
import math
e=map(float,raw_input().split())
a=e[0]
b=e[1]
C=math.radians(e[2])
c=(a**2+b**2-2*a*b*math.cos(C))**0.5
h=b*math.sin(C)
S=h*a*0.5
L=a+b+c
print S
print L
print h

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

a,b,C = map(int, raw_input())
c = math.sqrt(a*a + b*b - 2*a*b*math.cos(math.radians(C)))

S = (a * b * math.sin(math.radians(C))) / 2
L = a + b + c
h = (S * 2) / a

print("%f" % (S, ))
print("%f" % (L, ))
print("%f" % (h, ))


Fixed submission:
import math
e=map(float,raw_input().split())
a=e[0]
b=e[1]
C=math.radians(e[2])
c=(a**2+b**2-2*a*b*math.cos(C))**0.5
h=b*math.sin(C)
S=h*a*0.5
L=a+b+c
print S
print L
print h

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

a,b,C = map(int,raw_input())
c = math.sqrt(a*a+b*b-2*a*b*math.cos(math.radians(C)))
L = a+b+c
S = (a*b*math.sin(math.radians(C))) /2
h = (S*2)/a
print("%f" % (S, ))
print("%f" % (L, ))
print("%f" % (h, ))


Fixed submission:
import math
e=map(float,raw_input().split())
a=e[0]
b=e[1]
C=math.radians(e[2])
c=(a**2+b**2-2*a*b*math.cos(C))**0.5
h=b*math.sin(C)
S=h*a*0.5
L=a+b+c
print S
print L
print h
Buggy python submission (verdict: Runtime Error):
n=map(int,raw_input().split())
x1, y1, x2, y2 = map(float, raw_input().split())
print ((x1-x2)**2 + (y1-y2)**2)**0.5


Fixed submission:
import math
n = input()
x = map(float, raw_input().split())
y = map(float, raw_input().split())
d1 = 0.0
d2 = 0.0
d3 = 0.0
d4 = 0.0
for i in range(n):
    d1 += abs(x[i] - y[i])
    d2 += pow(abs(x[i] - y[i]),2)
    d3 += pow(abs(x[i] - y[i]),3)
    d4 = max(d4,abs(x[i] - y[i]))
d2 = math.sqrt(d2)
d3 = d3 ** (1.0 / 3.0)
print d1
print d2
print d3
print d4
Buggy python submission (verdict: Runtime Error):
a=input()
b=input()
print a*b
print (2*a)+(2*b)


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

Buggy python submission (verdict: Runtime Error):
a,b=map(int,raw_input().split(''))
print (a*b,2*a+2*b)


Fixed submission:
a,b=map(int,raw_input().split())
print a*b,2*(a+b)
Buggy python submission (verdict: Runtime Error):
s=input()
print (s/3600 : s/60%60 : s%60)


Fixed submission:
s=int(raw_input())
print "%d:%d:%d" %(s/3600,s/60%60,s%60)
Buggy python submission (verdict: Runtime Error):
x = map(int,raw_input().split())
for i in x
    print "case i : x"


Fixed submission:
i=0
while 1:
      x = int(input())
      if x==0 : break
      i+=1
      print "Case %d: %d" %(i,x)

Buggy python submission (verdict: Runtime Error):
i=0
while 1:
      x = int(input())
      if x==0 : break
      i+=1
      print "case %d: %d" %(i,x)
break



Fixed submission:
i=0
while 1:
      x = int(input())
      if x==0 : break
      i+=1
      print "Case %d: %d" %(i,x)
Buggy python submission (verdict: Runtime Error):
a,b,c = map(int, raw(input().split)
print len[x for x in range(a,b+1) if c % x == 0])



Fixed submission:
(a,b,c) = map(int, raw_input().split())
print len([x for x in range(a,b+1) if c % x == 0])

Buggy python submission (verdict: Runtime Error):
a,b,c = map(int, raw(input().split)
print len[x for x in range(a,b+1) if c % x == 0]


Fixed submission:
(a,b,c) = map(int, raw_input().split())
print len([x for x in range(a,b+1) if c % x == 0])

Buggy python submission (verdict: Runtime Error):
(a,b,c) = map(int, raw(input().split)
print len[x for x in range(a,b+1) if c % x == 0]


Fixed submission:
(a,b,c) = map(int, raw_input().split())
print len([x for x in range(a,b+1) if c % x == 0])

Buggy python submission (verdict: Runtime Error):
a,b,c = map(int, raw(input().split)
print len([x for x in range(a,b+1) if c % x == 0])


Fixed submission:
(a,b,c) = map(int, raw_input().split())
print len([x for x in range(a,b+1) if c % x == 0])
Buggy python submission (verdict: Runtime Error):
while True :
s= raw_input
a, op, b = s.split()
if op == ? : break
print eval(s)


Fixed submission:
while True:
  s = raw_input()
  a, op, b = s.split()
  if op == '?': break
  print eval(s)

Buggy python submission (verdict: Runtime Error):
while 1 :
s= raw_input
a, op, b = s.split()
if op == ? : break
print eval(s)


Fixed submission:
while True:
  s = raw_input()
  a, op, b = s.split()
  if op == '?': break
  print eval(s)

Buggy python submission (verdict: Runtime Error):
while True :
 s = raw.input()
 a, op, b = s.split()
 if op == ? : break
 print eval(s)


Fixed submission:
while True:
  s = raw_input()
  a, op, b = s.split()
  if op == '?': break
  print eval(s)

Buggy python submission (verdict: Runtime Error):
while True :
      s= raw_input
      a, op, b = s.split()
      if op == ? : break
      print eval(s)


Fixed submission:
while True:
  s = raw_input()
  a, op, b = s.split()
  if op == '?': break
  print eval(s)
Buggy python submission (verdict: Runtime Error):
n = int raw_input()
a = map(int, raw_input().split())
print min(a), max(a), sum(a)


Fixed submission:
n = int(raw_input())
a = map(int, raw_input().split())
print min(a), max(a), sum(a)

Buggy python submission (verdict: Runtime Error):
n = int raw_input()
a = map(int, raw_input().split())
print min(a), max(a), sum(a)


Fixed submission:
n = int(raw_input())
a = map(int, raw_input().split())
print min(a), max(a), sum(a)

Buggy python submission (verdict: Runtime Error):
n = int raw_input()
a = map(int, raw_input().split())
print min(a), max(a), sum(a)


Fixed submission:
n = int(raw_input())
a = map(int, raw_input().split())
print min(a), max(a), sum(a)
Buggy python submission (verdict: Runtime Error):
while True :
 h,w = map(int, raw_input().split())
 if h+w == 0 : break
 for y in xrange(h):
 print ('#' * w)


Fixed submission:
while True :
 h,w = map(int, raw_input().split())
 if h+w == 0 : break

 for y in xrange(h):
  print ('#' * w)
 print
Buggy python submission (verdict: Runtime Error):
while True :
 h, w = map(int, raw_input().split())
 if h + w ==0 : break

 print '#'*w
 for y in xrange(h-2)
 print '#' + '.'*(w-2) + '#'

 print '#'*w
 print


Fixed submission:
while True :
 h, w = map(int, raw_input().split())
 if h + w ==0 : break
 
 print '#'*w
 for y in xrange(h-2):
  print '#' + '.'*(w-2) + '#'
 
 print '#'*w
 print

Buggy python submission (verdict: Runtime Error):
while True :
 h, w = map(int, raw_input().split())
 if h + w ==0 : break
 
 print '#'*w
 for y in xrange(h-2)
  print '#' + '.'*(w-2) + '#'
 
 print '#'*w
 print


Fixed submission:
while True :
 h, w = map(int, raw_input().split())
 if h + w ==0 : break
 
 print '#'*w
 for y in xrange(h-2):
  print '#' + '.'*(w-2) + '#'
 
 print '#'*w
 print
Buggy python submission (verdict: Runtime Error):
n,x = map(int, raw_input().split())
if n = 0 : break
x.reverse()
print(x)


Fixed submission:
input()
a = map(int, raw_input().split())
 
a.reverse()
print(" ".join(map(str, a)))

Buggy python submission (verdict: Runtime Error):
n = raw_input().split()
x = map(int, raw_input().split())
 
if n = 0 : break
x.reverse()
print(x)


Fixed submission:
input()
a = map(int, raw_input().split())
 
a.reverse()
print(" ".join(map(str, a)))

Buggy python submission (verdict: Runtime Error):
n=raw_input().split()
x=map(int, raw_input().split())

if n == 0 : break
x.reverse()
print(x)


Fixed submission:
input()
a = map(int, raw_input().split())
 
a.reverse()
print(" ".join(map(str, a)))
Buggy python submission (verdict: Runtime Error):
while True:
 m,f,r = map(int, raw_input().split())
 m+f = s
 if m==-1 and f==-1 and r ==-1 : break
 elif m==-1 or f==-1 or r<30 : g=4
 elif 30 <= s and s <50 :
      if r <= 50: g=2
      else g=3
 elif 50 <=s and s <65 : g=2
 elif 65 <=s and s<70 : g=1
 else: g=0
 print 'ABCDF'[g]



Fixed submission:

while True:
    m,f,r = map(int, raw_input().split())
    s = m + f
    if m == -1 and f == -1 and r == -1: break
    elif m == -1 or f == -1 or s < 30: g=5
    elif 30 <= s and s < 50:
        if r >= 50: g=2
        else: g=3
    elif 50 <= s and s < 65: g=2
    elif 65 <= s and s < 80: g=1
    else: g=0
    print 'ABCDEF'[g]

Buggy python submission (verdict: Runtime Error):
while True:
 m,f,r = map(int, raw_input().split())
 m+f = s
 if m==-1 and f==-1 and r ==-1 : break
 elif m==-1 or f==-1 or r<30 : g=4
 elif 30 <= s and s <50 :
      if r <= 50: g=2
      else : g=3
 elif 50 <=s and s <65 : g=2
 elif 65 <=s and s<70 : g=1
 else: g=0
 print 'ABCDF'[g]


Fixed submission:

while True:
    m,f,r = map(int, raw_input().split())
    s = m + f
    if m == -1 and f == -1 and r == -1: break
    elif m == -1 or f == -1 or s < 30: g=5
    elif 30 <= s and s < 50:
        if r >= 50: g=2
        else: g=3
    elif 50 <= s and s < 65: g=2
    elif 65 <= s and s < 80: g=1
    else: g=0
    print 'ABCDEF'[g]

Buggy python submission (verdict: Runtime Error):
while True:
       m,f,r = map(int, raw_input().split())
       m+f = s
      if m==-1 and f==-1 and r ==-1 : break
      elif m==-1 or f==-1 or r<30 : g=4
      elif 30 <= s and s <50 :
           if r <= 50: g=2
           else : g=3
      elif 50 <=s and s <65 : g=2
      elif 65 <=s and s<70 : g=1
      else: g=0
      print 'ABCDF'[g]


Fixed submission:

while True:
    m,f,r = map(int, raw_input().split())
    s = m + f
    if m == -1 and f == -1 and r == -1: break
    elif m == -1 or f == -1 or s < 30: g=5
    elif 30 <= s and s < 50:
        if r >= 50: g=2
        else: g=3
    elif 50 <= s and s < 65: g=2
    elif 65 <= s and s < 80: g=1
    else: g=0
    print 'ABCDEF'[g]
Buggy python submission (verdict: Runtime Error):
Sp = [1,2,3,4,5,6,7,8,9,10,11,12,13]
Hu = [1,2,3,4,5,6,7,8,9,10,11,12,13]
Cr = [1,2,3,4,5,6,7,8,9,10,11,12,13]
Dy = [1,2,3,4,5,6,7,8,9,10,11,12,13]
 
num = int(input())
i = 0
 
while i < num:
     suit, n = raw_input().split()
     n = int(n)
     if suit == "S":
        Sp[n-1] = 0
     elif suit == "H":
        Hu[n-1] = 0
     elif suit == "C":
        Cr[n-1] = 0
     else:
        Dy[n-1] = 0
     i += 1
 
for i in Sp:
    if i != 0:
        print "S", i
 
for i in Hu:
    if i != 0:
        print "H", i
 
for i in Cr:
    if i != 0:
        print "C", i
 
for i in Dy:
    if i != 0:
        print "D", i



Fixed submission:
alphabet = [0]*26
i = 0;
for j in range(97,123):
    alphabet[i] = chr(j)
    i += 1
al_count = [0]*26
while True :
    try :
        words = raw_input().lower().split()
        for k in words :
            for l in list(k):
                if l=='a':
                    al_count[0] += 1
                elif l=='b':
                    al_count[1] += 1
                elif l=='c':
                    al_count[2]+=1  
                elif l=='d':
                    al_count[3] += 1
                elif l=='e':
                    al_count[4]+=1
                elif l=='f':
                    al_count[5] += 1
                elif l=='g':
                    al_count[6]+=1
                elif l=='h':
                    al_count[7] += 1
                elif l=='i':
                    al_count[8]+=1
                elif l=='j':
                    al_count[9] += 1
                elif l=='k':
                    al_count[10]+=1 
                elif l=='l':
                    al_count[11] += 1
                elif l=='m':
                    al_count[12]+=1 
                elif l=='n':
                    al_count[13] += 1
                elif l=='o':
                    al_count[14]+=1
                elif l=='p':
                    al_count[15] += 1
                elif l=='q':
                    al_count[16]+=1
                elif l=='r':
                    al_count[17] += 1
                elif l=='s':
                    al_count[18]+=1
                elif l=='t':
                    al_count[19] += 1
                elif l=='u':
                    al_count[20]+=1
                elif l=='v':
                    al_count[21]+=1
                elif l=='w':
                    al_count[22] += 1
                elif l=='x':
                    al_count[23]+=1
                elif l=='y':
                    al_count[24] += 1
                elif l=='z':
                    al_count[25]+=1
    except :
        break
for i in range(26):
    print '%c : %d' %(alphabet[i],al_count[i])
Buggy python submission (verdict: Runtime Error):
import math
a, b, c, d = map(int, input().split())
s1 = (a - c) * (a - c)
s2 = (b - d) * (b - d)
print(math.sqrt(s1+s2))



Fixed submission:
import math
a, b, c, d = map(float, input().split())
s1 = (a - c) * (a - c)
s2 = (b - d) * (b - d)
print("%.6f"%math.sqrt(s1+s2))

Buggy python submission (verdict: Runtime Error):
import math
a, b, c, d = map(int, input().split())
s1 = (a - c) * (a - c)
s2 = (b - d) * (b - d)
print("%.6f"%math.sqrt(s1+s2))



Fixed submission:
import math
a, b, c, d = map(float, input().split())
s1 = (a - c) * (a - c)
s2 = (b - d) * (b - d)
print("%.6f"%math.sqrt(s1+s2))
Buggy python submission (verdict: Runtime Error):
num = (int, input().split())
dice = {'N':(2, 6, 3, 4, 1, 5),'E':(4, 2, 1, 6, 5, 3),'W':(3, 2, 6, 1, 5, 4),'S':(5, 1, 3, 4, 6, 2)}
for alf in input():
    num = [num[i]for i in dice[alf-1]]
print(num[0])



Fixed submission:
dice = {'N':(2, 6, 3, 4, 1, 5),'E':(4, 2, 1, 6, 5, 3),'W':(3, 2, 6, 1, 5, 4),'S':(5, 1, 3, 4, 6, 2)}
num = input().split()
for alf in input():
    num = [num[i-1]for i in dice[alf]]
print(num[0])
Buggy python submission (verdict: Runtime Error):
a,b,c = map(int, input().split())
sum = 0
result = 0
while b >= a:
    result = c%a
    if result == 0:
        sum += 1
    a += 1
print(sum)



Fixed submission:
a,b = map(int, input().split())
print("%d %d %f"%(a//b,a%b,a/b))