Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
n = int( raw_input() )
A = [0]
p = range(1, n)
a = [ [ 0 for i in xrange(n) ] for j in xrange(n) ]
for i in xrange(n):
    a[i] = map( int,raw_input().split() )
l = 0
while p != []:
    a_min = 2001
    for i in A:
        for j in p:
            if 0 <= a[i][j] < a_min:
                a_min = a[i][j]
                add_A = j
    A.append( add_A )
    NY.remove( add_A )
    l += a_min
print l

Fixed submission:
n = int( raw_input() )
A = [0]
p = range(1, n)
a = [ [ 0 for i in xrange(n) ] for j in xrange(n) ]
for i in xrange(n):
    a[i] = map( int,raw_input().split() )
l = 0
while p != []:
    a_min = 2001
    for i in A:
        for j in p:
            if 0 <= a[i][j] < a_min:
                a_min = a[i][j]
                add_A = j
    A.append( add_A )
    p.remove( add_A )
    l += a_min
print l
Buggy python submission (verdict: Runtime Error):
n = raw_input()
n = int(n)
minv = raw_input()
minv = iny(minv)
maxv = -1000000000
  
for j in range(n-1):
  num = raw_input()
  num = int(num)  
  diff = num - minv
  if maxv < diff:
    maxv = diff
  if num < minv:
    minv = num
  
print maxv

Fixed submission:
n = raw_input()
n = int(n)
minv = raw_input()
minv = int(minv)
maxv = -1000000000
  
for j in range(n-1):
  num = raw_input()
  num = int(num)  
  diff = num - minv
  if maxv < diff:
    maxv = diff
  if num < minv:
    minv = num
  
print maxv

Buggy python submission (verdict: Runtime Error):
n = raw_input()
n = int(n)
minv = raw_input()
minv = iny(minv)
maxv = -1000000000
  
for j in range(n-1):
  num = raw_input()
  num = int(num)  
  diff = num - minv
  if maxv < diff:
    maxv = diff
  if num < minv:
    minv = num
  
print maxv

Fixed submission:
n = raw_input()
n = int(n)
minv = raw_input()
minv = int(minv)
maxv = -1000000000
  
for j in range(n-1):
  num = raw_input()
  num = int(num)  
  diff = num - minv
  if maxv < diff:
    maxv = diff
  if num < minv:
    minv = num
  
print maxv

Buggy python submission (verdict: Runtime Error):
n = raw_input()
n = int(n)
minv = raw_input()
minv = iny(minv)
maxv = -1000000000
  
for j in range(n-1):
  num = raw_input()
  num = int(num)  
  diff = num - minv
  if maxv < diff:
    maxv = diff
  if num < minv:
    minv = num
  
print maxv

Fixed submission:
n = raw_input()
n = int(n)
minv = raw_input()
minv = int(minv)
maxv = -1000000000
  
for j in range(n-1):
  num = raw_input()
  num = int(num)  
  diff = num - minv
  if maxv < diff:
    maxv = diff
  if num < minv:
    minv = num
  
print maxv
Buggy python submission (verdict: Runtime Error):
x = input()

x^3 = x * x * x;

print x^3

Fixed submission:
x = input()
print x * x * x
Buggy python submission (verdict: Runtime Error):
S = raw_input()
S = int(S)
h = second / 3600
m = (second - time * 3600) / 60
s = second % 60
print h , m , s

Fixed submission:
S = raw_input()
S = int(S)
h = S / 3600
m = (S - h * 3600) / 60
s = S - 3600 * h - 60 * m

print "%d:%d:%d" % (h,m,s)

Buggy python submission (verdict: Runtime Error):
S = raw_input()
S = int(S)
h = S / 3600
m = (S - h * 3600) / 60
s = S - 3600 * h - 60 * m
print h: , m: , s

Fixed submission:
S = raw_input()
S = int(S)
h = S / 3600
m = (S - h * 3600) / 60
s = S - 3600 * h - 60 * m

print "%d:%d:%d" % (h,m,s)
Buggy python submission (verdict: Runtime Error):
i = 1
while 1:
  x,y = map( int , raw_input().split() )
  if (x,y) == (0,0)
    break
  change = x
  x = y
  y = change
  print "%d %d" %(x,y) 

Fixed submission:
while 1:
  x,y = map( int , raw_input().split() )
  if x == 0 and y == 0:
    break
  elif x <= y:
    print "%d %d" %(x,y) 
  elif y < x : 
    print "%d %d" %(y,x)

Buggy python submission (verdict: Runtime Error):
i = 1
while 1:
  x,y = map( int , raw_input().split() )
  if x == 0 and y == 0
    break
  change = x
  x = y
  y = change
  print "%d %d" %(x,y) 

Fixed submission:
while 1:
  x,y = map( int , raw_input().split() )
  if x == 0 and y == 0:
    break
  elif x <= y:
    print "%d %d" %(x,y) 
  elif y < x : 
    print "%d %d" %(y,x)

Buggy python submission (verdict: Runtime Error):
while 1:
  x,y = map( int , raw_input().split() )
  if x == 0 and y == 0
    break
  change = x
  x = y
  y = change
  print "%d %d" %(x,y) 

Fixed submission:
while 1:
  x,y = map( int , raw_input().split() )
  if x == 0 and y == 0:
    break
  elif x <= y:
    print "%d %d" %(x,y) 
  elif y < x : 
    print "%d %d" %(y,x)

Buggy python submission (verdict: Runtime Error):
while 1:
  x,y = map( int , raw_input().split() )
  if x == 0 and y == 0
    break
  temp = x
  x = y
  y = temp
  print "%d %d" %(x,y) 

Fixed submission:
while 1:
  x,y = map( int , raw_input().split() )
  if x == 0 and y == 0:
    break
  elif x <= y:
    print "%d %d" %(x,y) 
  elif y < x : 
    print "%d %d" %(y,x)

Buggy python submission (verdict: Runtime Error):
while 1:
  x,y = map( int , raw_input().split() )
  if x == 0 and y == 0
    break
  elif x < y
    print "%d %d" %(x,y) 
  elif y < x  
    temp = x
    x = y
    y = temp
    print "%d %d" %(x,y) 

Fixed submission:
while 1:
  x,y = map( int , raw_input().split() )
  if x == 0 and y == 0:
    break
  elif x <= y:
    print "%d %d" %(x,y) 
  elif y < x : 
    print "%d %d" %(y,x)

Buggy python submission (verdict: Runtime Error):
while 1:
  x,y = map( int , raw_input().split() )
  if x == 0 and y == 0
    break
  elif x < y
    print "%d %d" %(x,y) 
  elif y < x  
    print "%d %d" %(y,x) 

Fixed submission:
while 1:
  x,y = map( int , raw_input().split() )
  if x == 0 and y == 0:
    break
  elif x <= y:
    print "%d %d" %(x,y) 
  elif y < x : 
    print "%d %d" %(y,x)
Buggy python submission (verdict: Runtime Error):
a,b,c = map( int , raw_input().split() )
n = 0

for i in range( a , b+1 ):
  if c % i == 0
    n = n + 1
print 'n'

Fixed submission:
a,b,c = map( int , raw_input().split() )
n = 0

for i in range( a , b+1 ):
  if c % i == 0:
    n = n + 1
print n

Buggy python submission (verdict: Runtime Error):
a,b,c = map( int , raw_input().split() )
n = 0

for i in range( a , b+1 ):
  if c % i == 0
    n = n + 1
print n

Fixed submission:
a,b,c = map( int , raw_input().split() )
n = 0

for i in range( a , b+1 ):
  if c % i == 0:
    n = n + 1
print n
Buggy python submission (verdict: Runtime Error):
a,b = map( int , raw_input().split() )

int(d) = a / b
int(r) = a % b
float(f) a / b

print "%d %d %f" %(d,r,f)

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

d = a / b
r = a % b
f = float(a) / float(b)

print "%d %d %f" %(d,r,f)

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

int(d) = a / b
int(r) = a % b
float(f) a / b

print "%d %d %f" %(d,r,f)

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

d = a / b
r = a % b
f = float(a) / float(b)

print "%d %d %f" %(d,r,f)

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

int(d) = a / b
int(r) = a % b
float(f) a / b

print "%d %d %d" %(d,r,f)

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

d = a / b
r = a % b
f = float(a) / float(b)

print "%d %d %f" %(d,r,f)

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

int(d) = a / b
int(r) = a % b
float(f) a / b

print "%d %d %d" %(d,r,f)

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

d = a / b
r = a % b
f = float(a) / float(b)

print "%d %d %f" %(d,r,f)

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

int(d) = a / b
int(r) = a % b
float(f) a / b

print "%d %d %f" %(d,r,f)

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

d = a / b
r = a % b
f = float(a) / float(b)

print "%d %d %f" %(d,r,f)

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

int(d) = a / b
int(r) = a % b
float(f) = a / b

print "%d %d %f" %(d,r,f)

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

d = a / b
r = a % b
f = float(a) / float(b)

print "%d %d %f" %(d,r,f)
Buggy python submission (verdict: Runtime Error):
import math

r = int( raw_input() ) 

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

print"%f %f" %(S,l)

Fixed submission:
import math

r = float( raw_input() ) 

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

print"%f %f" %(S,l)

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

r = int( raw_input() ) 

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

print"%f %f" %(S,l)

Fixed submission:
import math

r = float( raw_input() ) 

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

print"%f %f" %(S,l)

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

r = float( raw_input() ) 

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

print"%f %f" %(S,l)

Fixed submission:
import math

r = float( raw_input() ) 

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

print"%f %f" %(S,l)
Buggy python submission (verdict: Runtime Error):
x = "2"

print x*x*x

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

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

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

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

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

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

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

Buggy python submission (verdict: Runtime Error):
return x =^ 3

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

Buggy python submission (verdict: Runtime Error):
x = 2

print x =^ 3

x = 3

print x =^ 3

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

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

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

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

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

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

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

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

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

print a*b, 2*a + 2*b

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

Buggy python submission (verdict: Runtime Error):
print a*b, a+a+b+b

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

Buggy python submission (verdict: Runtime Error):
print a*b, 
print a+a+b+b

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

h = S/3600
m = (S-h*3600)/60
s = S - h*3600 - m*60

print h:m:s

Fixed submission:
S = input()
  
h = S/3600
m = (S%3600)/60
s = (S%3600)%60
  
print '%d:%d:%d' % (h,m,s)

Buggy python submission (verdict: Runtime Error):
S = input()
 
h = int(S/3600)
m = int((S-h*3600)/60)
s = S - h*3600 - m*60
 
print h:m:s

Fixed submission:
S = input()
  
h = S/3600
m = (S%3600)/60
s = (S%3600)%60
  
print '%d:%d:%d' % (h,m,s)

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

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

print h:m:s

Fixed submission:
S = input()
  
h = S/3600
m = (S%3600)/60
s = (S%3600)%60
  
print '%d:%d:%d' % (h,m,s)

Buggy python submission (verdict: Runtime Error):
S = input()
 
h = S/3600
m = (S%3600)/60
s = (S%3600)%60
 
print h:m:s

Fixed submission:
S = input()
  
h = S/3600
m = (S%3600)/60
s = (S%3600)%60
  
print '%d:%d:%d' % (h,m,s)
Buggy python submission (verdict: Runtime Error):
a = input()
b = input()

if a < b:
 print "a < b"
if a == b:
 print "a = b"
if a > b:
 print "a > b"

Fixed submission:
a, b = map(int, raw_input().split())
    
if a < b:
 print "a < b"
elif a > b:
 print "a > b"
else:
 print "a == b"

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

 
if a < b:
 print "a < b"
if a == b:
 print "a = b"
if a > b:
 print "a > b"

Fixed submission:
a, b = map(int, raw_input().split())
    
if a < b:
 print "a < b"
elif a > b:
 print "a > b"
else:
 print "a == b"

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

if a < b:
 print "a < b"
if a == b:
 print "a == b"
if a > b:
 print "a > b"

Fixed submission:
a, b = map(int, raw_input().split())
    
if a < b:
 print "a < b"
elif a > b:
 print "a > b"
else:
 print "a == b"

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

 
if a < b:
 print "a < b"
elif a > b:
 print "a > b"
else a == b:
 print "a == b"

Fixed submission:
a, b = map(int, raw_input().split())
    
if a < b:
 print "a < b"
elif a > b:
 print "a > b"
else:
 print "a == b"

Buggy python submission (verdict: Runtime Error):
a, b = map(int, raw_input().split())
   
if a < b:
 print "a < b"
elif a > b:
 print "a > b"
else a == b:
 print "a == b"

Fixed submission:
a, b = map(int, raw_input().split())
    
if a < b:
 print "a < b"
elif a > b:
 print "a > b"
else:
 print "a == b"
Buggy python submission (verdict: Runtime Error):
a, b, c = map(int, raw_input().split())

if a < b and b < c:
 print yes
else
 print no

Fixed submission:
a, b, c = map(int, raw_input().split())
  
if a < b and b < c:
 print "Yes"
else:
 print "No"

Buggy python submission (verdict: Runtime Error):
a, b, c = map(int, raw_input().split())
 
if a < b and b < c:
 print "yes"
else
 print "no"

Fixed submission:
a, b, c = map(int, raw_input().split())
  
if a < b and b < c:
 print "Yes"
else:
 print "No"

Buggy python submission (verdict: Runtime Error):
a, b, c = map(int, raw_input().split())
 
if a < b and b < c:
 print yes
else:
 print no

Fixed submission:
a, b, c = map(int, raw_input().split())
  
if a < b and b < c:
 print "Yes"
else:
 print "No"
Buggy python submission (verdict: Runtime Error):
x = input()
print x

if x == 0:
 return

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

Buggy python submission (verdict: Runtime Error):


for i in range()
   x = input()
   if x == 0:
      return
   print Case i: x
   

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

Buggy python submission (verdict: Runtime Error):
j = input()

for i in range(j):
   x = input
   if x == 0:
      return 
   print Case i: x

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

Buggy python submission (verdict: Runtime Error):
j = input()
 
for i in range(j):
   x = input()
   if x == 0:
      return
   print Case i: x

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

Buggy python submission (verdict: Runtime Error):
k = 0
i = 1

while k == 1:
   x = input()
   if x == 0:
      k = 1
   else:
      print Case i: x
      i =+ 1

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

Buggy python submission (verdict: Runtime Error):
k = 0
i = 1
 
while k == 1:
   x = input()
   if x != 0:
      print Case i: x
      i =+ 1
   else:
      k = 1

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

Buggy python submission (verdict: Runtime Error):
k = 0
i = 0
     
while k = 1:
   i += 1
   x = input()
   if x == 0:
      k = 1
   else:
      print "Case %d: %d" %(i, x)

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

Buggy python submission (verdict: Runtime Error):
i = 0
     
while 1:
   i += 1
   x = input()
   if x == 0:
      k = 1
   else:
      print "Case %d: %d" %(i, x)

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

if x < y:
   print (x y)
if x > y:
   print (y x)

Fixed submission:
while 1:
   x, y = map(int, raw_input().split())
   if x == 0 and y == 0:
      break
   elif x <= y:
      print "%d %d" %(x, y)
   elif x > y:
      print "%d %d" %(y, x)

Buggy python submission (verdict: Runtime Error):
while 1:
   x, y = input()
   if x == y:
      break
   if x < y:
      print (x y)
   if x > y:
      print (y x)

Fixed submission:
while 1:
   x, y = map(int, raw_input().split())
   if x == 0 and y == 0:
      break
   elif x <= y:
      print "%d %d" %(x, y)
   elif x > y:
      print "%d %d" %(y, x)

Buggy python submission (verdict: Runtime Error):
while 1:
   x, y = input()
   if x == 0 and y == 0:
      break
   if x < y:
      print (x y)
   if x > y:
      print (y x)

Fixed submission:
while 1:
   x, y = map(int, raw_input().split())
   if x == 0 and y == 0:
      break
   elif x <= y:
      print "%d %d" %(x, y)
   elif x > y:
      print "%d %d" %(y, x)

Buggy python submission (verdict: Runtime Error):
while 1:
   x = input()
   y = input()
   if x == 0 and y == 0:
      break
   if x < y:
      print x y
   if x > y:
      print y x

Fixed submission:
while 1:
   x, y = map(int, raw_input().split())
   if x == 0 and y == 0:
      break
   elif x <= y:
      print "%d %d" %(x, y)
   elif x > y:
      print "%d %d" %(y, x)
Buggy python submission (verdict: Runtime Error):
a, b, c = map(int, raw_input().split())
k = 0
      
for i in range(a, b):
   if c % i == 0 and != b:
      k += 1
   elif a == b and b == c:
      k = 1
 
print k

Fixed submission:
a, b, c = map(int, raw_input().split())
k = 0
      
for i in range(a, b+1):
   if c % i == 0:
      k += 1
 
print k
Buggy python submission (verdict: Runtime Error):
a, b = map(int, raw_input().split())

d = a/b
r = a%b
f = double(a/b)

print "%d %d %f" %(d, r, f)

Fixed submission:
a, b = map(int, raw_input().split())
   
d = a/b
r = a%b
f = float(a)/b
   
print "%d %d %.8f" %(d, r, f)
Buggy python submission (verdict: Runtime Error):
r = input()

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

print "%.8f %.8f" %(float(l), float(s))

Fixed submission:
import math
 
r = float(input())
    
l = 2*math.pi*r
s = r*r*math.pi
    
print "%.8f %.8f" %(s, l)

Buggy python submission (verdict: Runtime Error):
r = input()
 
l = 2*math.pi*r
s = r*r*math.pi
 
print "%.8f %.8f" %(float(l), float(s))

Fixed submission:
import math
 
r = float(input())
    
l = 2*math.pi*r
s = r*r*math.pi
    
print "%.8f %.8f" %(s, l)

Buggy python submission (verdict: Runtime Error):
r = input()
  
l = 2*math.pi*r
s = r*r*math.pi
  
print "%.8f %.8f" %(float(s), float(l))

Fixed submission:
import math
 
r = float(input())
    
l = 2*math.pi*r
s = r*r*math.pi
    
print "%.8f %.8f" %(s, l)

Buggy python submission (verdict: Runtime Error):
r = float_input()
  
l = 2*math.pi*r
s = r*r*math.pi
  
print "%.8f %.8f" %(s, l)

Fixed submission:
import math
 
r = float(input())
    
l = 2*math.pi*r
s = r*r*math.pi
    
print "%.8f %.8f" %(s, l)

Buggy python submission (verdict: Runtime Error):
r = float(input())
   
l = 2*math.pi*r
s = r*r*math.pi
   
print "%.8f %.8f" %(s, l)

Fixed submission:
import math
 
r = float(input())
    
l = 2*math.pi*r
s = r*r*math.pi
    
print "%.8f %.8f" %(s, l)
Buggy python submission (verdict: Runtime Error):
a = input()
op = raw_input()
b = input()

if op == "+":
   print a+b
elif op == "-":
   print a-b
elif op == "*":
   print a*b
elif op == "/":
   print int(a)/b
elif op == "?":
   return

Fixed submission:
while 1:
   a, op, b = raw_input().split()
   A = int(a)
   B = int(b)
 
   if op == '?':
      break
   elif op == '+':
      print A+B
   elif op == '-':
      print A-B
   elif op == '*':
      print A*B
   elif op == '/':
      print A/B

Buggy python submission (verdict: Runtime Error):
while 1:
   a, op, b = map(raw_input().split())
 
   if op == "+":
      print a+b
   elif op == "-":
      print a-b
   elif op == "*":
      print a*b
   elif op == "/":
      print int(a)/b
   elif op == "?":
      break

Fixed submission:
while 1:
   a, op, b = raw_input().split()
   A = int(a)
   B = int(b)
 
   if op == '?':
      break
   elif op == '+':
      print A+B
   elif op == '-':
      print A-B
   elif op == '*':
      print A*B
   elif op == '/':
      print A/B

Buggy python submission (verdict: Runtime Error):
while 1:
   a, op, b = map(raw_input().split())
   A = int(a)
   B = int(b)

   if op == "?":
      break
   elif op == "+":
      print A+B
   elif op == "-":
      print A-B
   elif op == "*":
      print A*B
   elif op == "/":
      print A/B

Fixed submission:
while 1:
   a, op, b = raw_input().split()
   A = int(a)
   B = int(b)
 
   if op == '?':
      break
   elif op == '+':
      print A+B
   elif op == '-':
      print A-B
   elif op == '*':
      print A*B
   elif op == '/':
      print A/B
Buggy python submission (verdict: Runtime Error):
n = input()
sum = 0

for i in range(0, n-1):
   x = input()
   m[i] = x
   sum = sum + m[i]

min = min(m[i] for i in range(0, n-1))
max = max(m[i] for i in range(0, n-1))

print '%d %d &d' &(min, max, sum)

Fixed submission:
n = input()
m = map(int, raw_input().split())

print '%d %d %d' %(min(m), max(m), sum(m))

Buggy python submission (verdict: Runtime Error):
n = input()
sum = 0
 
for i in range(0, n-1):
   x = input()
   m[i] = x
   sum = sum + m[i]
 
min = min(m[i] for i in range(0, n-1))
max = max(m[i] for i in range(0, n-1))
 
print '%d %d %d' %(min, max, sum)

Fixed submission:
n = input()
m = map(int, raw_input().split())

print '%d %d %d' %(min(m), max(m), sum(m))
Buggy python submission (verdict: Runtime Error):
while 1:
   H, W = map(raw_input().split())

   if H == 0 and W == 0:
      break
   else:
      for i in range(0, H-1):
         for j in range(0, W-1):
            print #
         print '\n'
   print '\n'

Fixed submission:
while 1:
   H, W = map(int, raw_input().split())

   if H == 0 and W == 0: 
      break
   for i in range(H):
      print "#"*W
   print ""

Buggy python submission (verdict: Runtime Error):
while 1:
   H, W = map(raw_input().split())
 
   if H == 0 and W == 0:
      break
   else:
      for i in range(0, H-1):
         print '#'*W
      print '\n'

Fixed submission:
while 1:
   H, W = map(int, raw_input().split())

   if H == 0 and W == 0: 
      break
   for i in range(H):
      print "#"*W
   print ""

Buggy python submission (verdict: Runtime Error):
while 1:
   H, W = map(raw_input().split())
  
   if H == 0 and W == 0:
      break
   for i in range(0, H-1):
      print '#'*W
   print '\n'

Fixed submission:
while 1:
   H, W = map(int, raw_input().split())

   if H == 0 and W == 0: 
      break
   for i in range(H):
      print "#"*W
   print ""
Buggy python submission (verdict: Runtime Error):
n = raw_input()

for i in range(0, n):
   a = input()
   A(n-i) = a

for j in range(0, n):
   print A(j),

Fixed submission:
n = input()
a = map(int, raw_input().split())
    
for i in range(0, n):
   print a[n-i-1],

Buggy python submission (verdict: Runtime Error):
n = raw_input()
a = map(int, raw_input().split())
 
for i in range(0, n):
   print A(n-i),

Fixed submission:
n = input()
a = map(int, raw_input().split())
    
for i in range(0, n):
   print a[n-i-1],

Buggy python submission (verdict: Runtime Error):
n = raw_input()
a = map(int, raw_input().split())
  
for i in range(0, n):
   print a(n-i-1),

Fixed submission:
n = input()
a = map(int, raw_input().split())
    
for i in range(0, n):
   print a[n-i-1],

Buggy python submission (verdict: Runtime Error):
n = input()
a = map(int, raw_input().split())
   
for i in range(0, n):
   print a(n-i-1),

Fixed submission:
n = input()
a = map(int, raw_input().split())
    
for i in range(0, n):
   print a[n-i-1],

Buggy python submission (verdict: Runtime Error):
n = raw_input()
a = map(int, raw_input().split())
   
for i in range(0, n):
   print a[n-i-1],

Fixed submission:
n = input()
a = map(int, raw_input().split())
    
for i in range(0, n):
   print a[n-i-1],