Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
def merge( tS, left, mid, right ):
	global cnt
	n1 = mid - left;
	n2 = right - mid;
	tL = tS[ left : mid ];
	tR = tS[ mid : right ];	
	tL.append( 1000000001 )
	tR.append( 1000000001 )
	i = j = 0
	for k in range( left, right ):
		cnt += 1
		if tL[i] <= tR[j]:
			tS[k] = tL[i]
			i += 1
		else:
			tS[k] = tR[j]
			j += 1


def mergeSort( tS, left, right ):
	if left+1 < right:
		mid = ( left+right )/2
		mergeSort( tS, left, mid )
		mergeSort( tS, mid, right )
		merge( tS, left, mid, right )

n = int( input() )
arrS = [ int( val ) for val in input().split( ' ' ) ]
cnt = 0
mergeSort( arrS, 0, n )
print( " ".join( map( str, arrS ) ) )
print( cnt )

Fixed submission:
def merge( tS, left, mid, right ):
	global cnt
	n1 = mid - left;
	n2 = right - mid;
	tL = tS[ left : mid ];
	tR = tS[ mid : right ];	
	tL.append( 1000000001 )
	tR.append( 1000000001 )
	i = j = 0
	for k in range( left, right ):
		cnt += 1
		if tL[i] <= tR[j]:
			tS[k] = tL[i]
			i += 1
		else:
			tS[k] = tR[j]
			j += 1


def mergeSort( tS, left, right ):
	if left+1 < right:
		mid = ( left+right )//2
		mergeSort( tS, left, mid )
		mergeSort( tS, mid, right )
		merge( tS, left, mid, right )

n = int( input() )
arrS = [ int( val ) for val in input().split( ' ' ) ]
cnt = 0
mergeSort( arrS, 0, n )
print( " ".join( map( str, arrS ) ) )
print( cnt )
Buggy python submission (verdict: Runtime Error):
x=raw_input()
print( x**3 )

Fixed submission:
import sys

x = int( sys.stdin.readline() )
print( "{}".format( x**3 ) )

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

Fixed submission:
import sys

x = int( sys.stdin.readline() )
print( "{}".format( x**3 ) )

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

Fixed submission:
import sys

x = int( sys.stdin.readline() )
print( "{}".format( x**3 ) )

Buggy python submission (verdict: Runtime Error):
#coding:utf-8
x=input()
print( x**3 )

Fixed submission:
import sys

x = int( sys.stdin.readline() )
print( "{}".format( x**3 ) )

Buggy python submission (verdict: Runtime Error):
#coding:utf-8
x=input()
print( x**3 )

Fixed submission:
import sys

x = int( sys.stdin.readline() )
print( "{}".format( x**3 ) )

Buggy python submission (verdict: Runtime Error):
#coding:utf-8
x=input()
print x**3

Fixed submission:
import sys

x = int( sys.stdin.readline() )
print( "{}".format( x**3 ) )

Buggy python submission (verdict: Runtime Error):
#coding:utf-8
x=raw_input()
print( x**3 )

Fixed submission:
import sys

x = int( sys.stdin.readline() )
print( "{}".format( x**3 ) )

Buggy python submission (verdict: Runtime Error):
#coding:utf-8
x=input()
print( x**3 )

Fixed submission:
import sys

x = int( sys.stdin.readline() )
print( "{}".format( x**3 ) )

Buggy python submission (verdict: Runtime Error):
#coding:utf-8
x=input()
x=x**3
print(x) 

Fixed submission:
import sys

x = int( sys.stdin.readline() )
print( "{}".format( x**3 ) )
Buggy python submission (verdict: Runtime Error):
import sys

a, b = [ int( val ) for val in sys.stdin.readline().split( ' ' ) ]
print( "{} {} {0:.5f}".format( a/b, a%b, float(a)/float(b) ) )

Fixed submission:
import sys

a, b = [ int( val ) for val in sys.stdin.readline().split( ' ' ) ]
print( "{:d} {:d} {:7f}".format( a//b, a%b,  float(a)/float(b) ) )

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

a, b = [ int( val ) for val in sys.stdin.readline().split( ' ' ) ]
print( "{} {} {0:f}".format( a/b, a%b, float(a)/float(b) ) )

Fixed submission:
import sys

a, b = [ int( val ) for val in sys.stdin.readline().split( ' ' ) ]
print( "{:d} {:d} {:7f}".format( a//b, a%b,  float(a)/float(b) ) )
Buggy python submission (verdict: Runtime Error):
import sys

while True:
	nums = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
	for i in range( nums[1] ):
		print( "#"*nums[1], "\n" )

Fixed submission:
import sys

while True:
	h, w = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
	if 0 ==h and 0 == w:
		break
	print( "{:s}\n".format( "#"*w )*h  )

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

while True:
	nums = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
	for i in range( nums[0] ):
		print( "#"*nums[1] )
	print

Fixed submission:
import sys

while True:
	h, w = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
	if 0 ==h and 0 == w:
		break
	print( "{:s}\n".format( "#"*w )*h  )

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

while True:
	nums = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
	for i in range( nums[0] ):
		print( "#"*nums[1] )
	print

Fixed submission:
import sys

while True:
	h, w = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
	if 0 ==h and 0 == w:
		break
	print( "{:s}\n".format( "#"*w )*h  )
Buggy python submission (verdict: Runtime Error):
import sys
 
while True:
    h, w = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
    if 0 ==h and 0 == w:
        break
    pa = [ "#", "." ]
    d = 0
    ouput = []
    for i in range( h ):
        d = i&1
        for j in range( w ):
            ouput.append( pa[d] )
            d = not d   
        ouput.append( "\n" )    
    print( "".join( ouput ) )

Fixed submission:
import sys
 
while True:
    h, w = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
    if 0 ==h and 0 == w:
        break
    pa = [ "#", "." ]
    ouput = []
    for i in range( h ):
        for j in range( w ):
            ouput.append( pa[(i+j)&1] ) 
        ouput.append( "\n" )    
    print( "".join( ouput ) )
Buggy python submission (verdict: Runtime Error):
import sys

while True:
	n, x = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
	if 0 == n and 0 == x:
		break
		
	cnt = 0
	ave = x / 3
	for i in range( 1, ave ):
		for j in range( i+1, n ):
			if  x <= ( i+j ):
				break
			for k in range( j+1, n+1 ):
				s = ( i + j + k )
				if x == s:
					cnt += 1
					break
				elif   x < s:
					break
	
	print( cnt )

Fixed submission:
import sys

while True:
	n, x = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
	if 0 == n and 0 == x:
		break
		
	cnt = 0
	ave = x // 3
	for i in range( 1, ave ):
		ave2 = (x-i) // 2
		for j in range( i+1, ave2+1 ):
			k = x-i-j
			if j < k and k <= n:
				cnt += 1
	
	print( cnt )

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

while True:
	n, x = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
	if 0 == n and 0 == x:
		break
		
	cnt = 0
	ave = x / 3
	for i in range( 1, ave ):
		for j in range( i+1, n ):
			if  x <= ( i+j ):
				break
			for k in range( j+1, n+1 ):
				s = ( i + j + k )
				if x == s:
					cnt += 1
					break
				elif   x < s:
					break
	
	print( cnt )

Fixed submission:
import sys

while True:
	n, x = [ int( val ) for val in sys.stdin.readline().split( " " ) ]
	if 0 == n and 0 == x:
		break
		
	cnt = 0
	ave = x // 3
	for i in range( 1, ave ):
		ave2 = (x-i) // 2
		for j in range( i+1, ave2+1 ):
			k = x-i-j
			if j < k and k <= n:
				cnt += 1
	
	print( cnt )
Buggy python submission (verdict: Runtime Error):
print( sys.stdin.readline().rstrip().swapcase() )

Fixed submission:
import sys

line = sys.stdin.readline()
output = []
for i in range( len( line )-1 ):
	c = ord( line[i] )
	if ord( 'a' ) <= c and c <= ord( 'z' ):
		c = chr( c ).upper()
	elif ord( 'A' ) <= c and c <= ord( 'Z' ):
		c = chr( c ).lower()
	else:
		c = chr( c )
	output.append( c )

print( "".join( output ) )
Buggy python submission (verdict: Runtime Error):
import sys

chash = {}
for i in range( ord( 'a' ), ord( 'z' ) ):
	chash[ chr( i ) ] = 0


line = sys.stdin.readlines().rstrip()
for i in range( len( line ) ):
	if line[i].isalpha():
		chash[ line[i].lower() ] += 1

for i in range( ord( 'a' ), ord( 'z' ) ):
	print( "{:s} : {:d}".format( chr( i ), chash[ chr( i ) ] ) )
	

Fixed submission:
import sys
 
chash = {}
for i in range( ord( 'a' ), ord( 'z' )+1 ):
    chash[ chr( i ) ] = 0
 
while True:
    line = sys.stdin.readline().rstrip()
    if not line:
        break
    for i in range( len( line ) ):
        if line[i].isalpha():
            chash[ line[i].lower() ] += 1
 
for i in range( ord( 'a' ), ord( 'z' )+1 ):
    print( "{:s} : {:d}".format( chr( i ), chash[ chr( i ) ] ) )

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

chash = {}
for i in range( ord( 'a' ), ord( 'z' ) ):
	chash[ chr( i ) ] = 0

line = sys.stdin.readlines().rstrip()
for i in range( len( line ) ):
	if line[i].isalpha():
		chash[ line[i].lower() ] += 1

for i in range( ord( 'a' ), ord( 'z' ) ):
	print( "{:s} : {:d}".format( chr( i ), chash[ chr( i ) ] ) )

Fixed submission:
import sys
 
chash = {}
for i in range( ord( 'a' ), ord( 'z' )+1 ):
    chash[ chr( i ) ] = 0
 
while True:
    line = sys.stdin.readline().rstrip()
    if not line:
        break
    for i in range( len( line ) ):
        if line[i].isalpha():
            chash[ line[i].lower() ] += 1
 
for i in range( ord( 'a' ), ord( 'z' )+1 ):
    print( "{:s} : {:d}".format( chr( i ), chash[ chr( i ) ] ) )

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

chash = {}
for i in range( ord( 'a' ), ord( 'z' ) ):
	chash[ chr( i ) ] = 0

lines = sys.stdin.readlines().rstrip()
for i in range( len( lines ) ):
	for j in range( len( lines[i] ) ):
		if lines[i][j].isalpha():
			chash[ lines[i][j].lower() ] += 1

for i in range( ord( 'a' ), ord( 'z' ) ):
	print( "{:s} : {:d}".format( chr( i ), chash[ chr( i ) ] ) )

Fixed submission:
import sys
 
chash = {}
for i in range( ord( 'a' ), ord( 'z' )+1 ):
    chash[ chr( i ) ] = 0
 
while True:
    line = sys.stdin.readline().rstrip()
    if not line:
        break
    for i in range( len( line ) ):
        if line[i].isalpha():
            chash[ line[i].lower() ] += 1
 
for i in range( ord( 'a' ), ord( 'z' )+1 ):
    print( "{:s} : {:d}".format( chr( i ), chash[ chr( i ) ] ) )
Buggy python submission (verdict: Runtime Error):
import sys

w = sys.stdin.readline().rstrip().lower()
cnt = 0
while True:
    lines = sys.stdin.readline().rstrip()
    if not lines:
		break	
    words = lines.split( " " )
    for i in range( len( words ) ):
    	if w == words[i].lower():    		
			cnt += 1			
print( cnt )

Fixed submission:
import sys

w = sys.stdin.readline().rstrip().lower()
cnt = 0
while True:
	lines = sys.stdin.readline().rstrip()
	if not lines:
		break
	for s in lines.split( " " ):
		if w == s.lower():
			cnt = cnt + 1	

print( cnt )

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

w = sys.stdin.readline().rstrip().lower()
cnt = 0
while True:
    lines = sys.stdin.readline().rstrip()
    if not lines:
		break	
    words = lines.split( " " )
    for i in range( len( words ) ):
    	if w == words[i].lower():
			cnt = cnt + 1			
print( cnt )

Fixed submission:
import sys

w = sys.stdin.readline().rstrip().lower()
cnt = 0
while True:
	lines = sys.stdin.readline().rstrip()
	if not lines:
		break
	for s in lines.split( " " ):
		if w == s.lower():
			cnt = cnt + 1	

print( cnt )

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

w = sys.stdin.readline().rstrip().lower()
cnt = 0
while True:
    lines = sys.stdin.readline().rstrip()
    if not lines:
		break	
    words = lines.split( " " )
    for i in range( len( words ) ):
    	if w == words[i].lower():
			cnt = cnt + 1	

print( cnt )

Fixed submission:
import sys

w = sys.stdin.readline().rstrip().lower()
cnt = 0
while True:
	lines = sys.stdin.readline().rstrip()
	if not lines:
		break
	for s in lines.split( " " ):
		if w == s.lower():
			cnt = cnt + 1	

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

def hurui(a):
    ret = [True for i in range(a+1)]
    for i in range(2, int(math.sqrt(a))+2):
        for j in range(i*2, a+1, i):
            ret[j] = False

    return ret

n = int(input())
l = hurui(10000)
ans = 0
for i in range(n):
    a = int(input())
    if l[a]:
        ans += 1

print(ans)

Fixed submission:
ans = 0
N = int(input())
for i in range(N):
    a = int(input())
    if a == 2:
        ans += 1
    elif a%2 == 0:
        continue
    else:
        if pow(2, a-1, a) == 1:
            ans += 1

print(ans)

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

ans = 0
N = int(input())
for i in range(N):
    a = int(input())
    if a == 2:
        ans += 1
    elif a%2 == 0:
        continue
    else:
        if math.pow(2, a-1, a) == 1:
            ans += 1

print(ans)

Fixed submission:
ans = 0
N = int(input())
for i in range(N):
    a = int(input())
    if a == 2:
        ans += 1
    elif a%2 == 0:
        continue
    else:
        if pow(2, a-1, a) == 1:
            ans += 1

print(ans)

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

ans = 0
N = int(input())
for i in range(N):
    a = int(input())
    if a == 2:
        ans += 1
    elif a%2 == 0:
        continue
    else:
        if math.pow(2, a-1, a) == 1:
            ans += 1

print(ans)

Fixed submission:
ans = 0
N = int(input())
for i in range(N):
    a = int(input())
    if a == 2:
        ans += 1
    elif a%2 == 0:
        continue
    else:
        if pow(2, a-1, a) == 1:
            ans += 1

print(ans)
Buggy python submission (verdict: Time Limit Exceeded):
ans = -float('inf')
n = int(input())
a = [int(input()) for i in range(n)]
for i in range(n):
    for j in range(n):
        if i >= j:
            continue
        ans = max(a[j]-a[i], ans)
print(ans)

Fixed submission:
n = int(input())
a = [int(input()) for i in range(n)]
minr = a[0]
ans = -float('inf')
for i in range(1, n):
    ans = max(a[i]-minr, ans)
    minr = min(a[i], minr)
print(ans)
Buggy python submission (verdict: Runtime Error):
x = input().upper()
print x

Fixed submission:
x = raw_input().upper()
print x
Buggy python submission (verdict: Runtime Error):
a,b,c,d,e,f = map(int, input().split())
x = a + b + c + d + e + f
y = 100000
for i in (a,b,c,d):
 if y > i : y = i
z = 0
if e < f : z = f
else z = e
print (x - y - z)

Fixed submission:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
f = int(input())
x = a + b + c + d + e + f
y = 100000
for i in (a,b,c,d):
    if y > i : y = i
z = 0
if e < f : z = e
else : z = f
print (x - y - z)

Buggy python submission (verdict: Runtime Error):
a,b,c,d,e,f = map(int, input().split())
x = a + b + c + d + e + f
y = 100000
for i in (a,b,c,d):
 if y > i : y = i
z = 0
if e < f : z = f
else : z = e
print (x - y - z)

Fixed submission:
a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())
f = int(input())
x = a + b + c + d + e + f
y = 100000
for i in (a,b,c,d):
    if y > i : y = i
z = 0
if e < f : z = e
else : z = f
print (x - y - z)
Buggy python submission (verdict: Runtime Error):
while True:
        x = raw_input();
        sum = 0
        if x == 0:
                break
        for i in (x):
                print i

Fixed submission:
while True:
        x = raw_input();
        sum = 0
        if int(x) == 0:
                break
        for i in (x):
                sum += int(i)
        print sum

Buggy python submission (verdict: Runtime Error):
while True:
        x = raw_input();
        sum = 0
        if x == 0:
                break
        for i in (x):
                print i

Fixed submission:
while True:
        x = raw_input();
        sum = 0
        if int(x) == 0:
                break
        for i in (x):
                sum += int(i)
        print sum

Buggy python submission (verdict: Runtime Error):
        x = raw_input();
        sum = 0
        if int(x) == 0:
                break
        for i in (x):
                sum += int(i)
        print sum

Fixed submission:
while True:
        x = raw_input();
        sum = 0
        if int(x) == 0:
                break
        for i in (x):
                sum += int(i)
        print sum
Buggy python submission (verdict: Runtime Error):

if __name__=="__main__":
    a=int(raw_input())
    b=int(raw_input())
    a=a*b
    print a/3.305785
    
    

Fixed submission:
if __name__=="__main__":
    num=raw_input().split()
    a=int(num[0])
    b=int(num[1])
    print a*b/3.305785
Buggy python submission (verdict: Runtime Error):
for i in range(int(input())):
	c,a,n = map(int,input().split())
    cnt1 = min(c,a,n)
    c -= cnt1
    a -= cnt1
    cnt2 = min(c//2,a)
    c -= cnt2*2
    cnt3 = c//3
    print(cnt1+cnt2+cnt3)
    
#for i in range(int(input())):
#	c,a,n = map(int,input().split())
#	cnt = 0
#	while True:
#		if c<1 or a<1 or n<1:
#			break
#		c -= 1
#		a -= 1
#		n -= 1
#		cnt += 1
#	while True:
#		if c<2 or a<1:
#			break
#		c -= 2
#		a -= 1
#		cnt += 1
#	while True:
#		if c<3:
#			break
#		c -= 3
#		cnt += 1
#	print(cnt)

Fixed submission:
for i in range(int(input())):
	c,a,n = map(int,input().split())
	cnt1 = min(c,a,n)
	c -= cnt1
	a -= cnt1
	cnt2 = min(c//2,a)
	c -= cnt2*2
	cnt3 = c//3
	print(cnt1+cnt2+cnt3)

#for i in range(int(input())):
#	c,a,n = map(int,input().split())
#	cnt = 0
#	while True:
#		if c<1 or a<1 or n<1:
#			break
#		c -= 1
#		a -= 1
#		n -= 1
#		cnt += 1
#	while True:
#		if c<2 or a<1:
#			break
#		c -= 2
#		a -= 1
#		cnt += 1
#	while True:
#		if c<3:
#			break
#		c -= 3
#		cnt += 1
#	print(cnt)
Buggy python submission (verdict: Runtime Error):
n,k = map(int,input().split())
d={}
for i in range(n):
    d[i+1] = int(input())
for i in range(n):
    j = i+1
    if j == n:
        break
    if d[i]%k > d[i+1]%k:
        t = d[i]
        d[i] = d[i+1]
        d[i+1] = t
for i in range(n):
    print(d[i+1])

Fixed submission:
n,m = map(int,input().split())
d={}
for i in range(n):
    d[i+1] = int(input())
for l in range(m):
    k = l+1
    for j in range(n):
        i = j+1
        if i == n:
            break
        if d[i]%k > d[i+1]%k:
            t = d[i]
            d[i] = d[i+1]
            d[i+1] = t
for i in range(n):
    print(d[i+1])
Buggy python submission (verdict: Runtime Error):
import sys
x = input()
x = x * x * x
print　(x)

Fixed submission:
import sys
x = int(input())
x = x**3
print (x)
Buggy python submission (verdict: Runtime Error):
a,b,c = map(int, input().split())

if a < b < c:
    result = "Yes"

else:
    result = "No"

print(result)



Fixed submission:
count = 0
a = 0
b = 0
while (count <= 3000) and (a  <= 10000) and (b <= 10000):
    a,b = map(int, input().split())
    if a == b == 0:
        break

    if a > b:
        tmp = a
        a = b
        b = tmp

    count += 1
    print(a, b, sep = ' ')
Buggy python submission (verdict: Runtime Error):
a = input();
print(int(a.split()[0])*int(a.split()[1]),int(a.split()[0]) * 2 + int(a.split()[1])*2, end=" ")

Fixed submission:
a = input();
print(int(a.split()[0])*int(a.split()[1]),int(a.split()[0]) * 2 + int(a.split()[1])*2, end="\n")
Buggy python submission (verdict: Runtime Error):
x = raw_input()
print x**3

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

Fixed submission:
l = map(int, raw_input().split())
print l[0] * l[1],
print l[0] *2 + l[1] * 2
Buggy python submission (verdict: Runtime Error):
def gcd(x, y):
    if x < y:
        swap(x, y)
    if y == 0:
        return x
    return gcd(y, x % y)

x, y = [int(i) for i in input().split()]
print(gcd(x, y))


Fixed submission:
def gcd(x, y):
    if y == 0:
        return x
    return gcd(y, x % y)

x, y = [int(i) for i in input().split()]
if x < y:
    x, y = y, x
print(gcd(x, y))
Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())
s = [int(i) for i in input().split()]
q = int(input())
t = [int(i) for i in input().split()]
ans = 0
for i in range(q):
    for j in range(n):
        if t[i] == s[j]:
            ans += 1
            break
print(ans)


Fixed submission:
n = int(input())
s = [int(i) for i in input().split()]
q = int(input())
t = [int(i) for i in input().split()]
ans = 0
s.append(10000000000)
for i in range(q):
    l = 0
    r = n + 1
    while r - l > 1:
        m = (l + r) // 2
        if s[m] > t[i]:
            r = m
        else:
            l = m
    if r > 0 and s[r - 1] == t[i]:
        ans += 1
print(ans)
Buggy python submission (verdict: Runtime Error):
import string

h = input().split()
for i in range(len(h)):
    for j in range(len(h)-1):
        if h[i] < h[j]:
            h[i] = h[j] 
print(h[0])
print(h[1])
print(h[2])

Fixed submission:
import string
import sys

#??????????????\????????????ip?????\??????
ip = sys.stdin.readlines()
for i in range(len(ip)):
    ip[i] = int(ip[i].strip("\n"))

#??????3??????????????????
h = [0]*3

#?????????????????????
for i in range(len(ip)):
    for j in range(len(ip)):
        if ip[i] > ip[j]:
            tmp = ip[i]
            ip[i] = ip[j] 
            ip[j] = tmp            

for i in range(3):
    if h != 0:
        print(ip[i])

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

h = input().split()
for i in range(len(h)):
    for j in range(len(h)-1):
        if int(h[i]) > int(h[j]):
            tmp = h[i]
            h[i] = h[j] 
            h[j] = tmp
print(h[0])
print(h[1])
print(h[2])

Fixed submission:
import string
import sys

#??????????????\????????????ip?????\??????
ip = sys.stdin.readlines()
for i in range(len(ip)):
    ip[i] = int(ip[i].strip("\n"))

#??????3??????????????????
h = [0]*3

#?????????????????????
for i in range(len(ip)):
    for j in range(len(ip)):
        if ip[i] > ip[j]:
            tmp = ip[i]
            ip[i] = ip[j] 
            ip[j] = tmp            

for i in range(3):
    if h != 0:
        print(ip[i])

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

count = 0
try:
    count += 1
    h[count] = int(input())
except:
    print("??????")

for i in range(len(h)):
    for j in range(len(h)-1):
        if int(h[i]) > int(h[j]):
            tmp = h[i]
            h[i] = h[j] 
            h[j] = tmp            
print(h[0])
print(h[1])
print(h[2])

Fixed submission:
import string
import sys

#??????????????\????????????ip?????\??????
ip = sys.stdin.readlines()
for i in range(len(ip)):
    ip[i] = int(ip[i].strip("\n"))

#??????3??????????????????
h = [0]*3

#?????????????????????
for i in range(len(ip)):
    for j in range(len(ip)):
        if ip[i] > ip[j]:
            tmp = ip[i]
            ip[i] = ip[j] 
            ip[j] = tmp            

for i in range(3):
    if h != 0:
        print(ip[i])
Buggy python submission (verdict: Runtime Error):
# coding: utf-8
import math
x1,y1,x2,y2 = input().split()

X = int(x2) - int(x1)
Y = int(y2) - int(y1)

length = math.sqrt( X**2 + Y**2 )
print(length)

Fixed submission:
# coding: utf-8
import math
x1,y1,x2,y2 = input().split()

X = float(x2) - float(x1)
Y = float(y2) - float(y1)

length = math.sqrt( X**2 + Y**2 )
print(length)

Buggy python submission (verdict: Runtime Error):
# coding: utf-8
import math
x1,y1,x2,y2 = input().split()

X = int(x2) - int(x1)
Y = int(y2) - int(y1)

length = math.sqrt( X**2 + Y**2 )
print(length)

Fixed submission:
# coding: utf-8
import math
x1,y1,x2,y2 = input().split()

X = float(x2) - float(x1)
Y = float(y2) - float(y1)

length = math.sqrt( X**2 + Y**2 )
print(length)
Buggy python submission (verdict: Runtime Error):
N = int(input())
R = [int(input()) for i in range(N)]

maxv = R[1] - R[0]
minv = R[0]
for i in n:
    maxv = max(maxv,i-minv)
    minv = min(minv,i)

print (maxv)

Fixed submission:
N = int(input())
R = [int(input()) for i in range(N)]

maxv = R[1] - R[0]
minv = R[0]
for i in range(1,len(R)):
    maxv = max(maxv,R[i]-minv)
    minv = min(minv,R[i])

print (maxv)