Harryxun/testdata huggingface dataset:
Buggy python submission (verdict: Runtime Error):
# coding=utf-8


def cross_product(vect1, vect2):
    return vect1[0]*vect2[1] - vect1[1]*vect2[0]


def vector_plus(vect1, vect2):
    return [el1 + el2 for el1, el2 in zip(vect1, vect2)]


def vector_minus(vect1, vect2):
    return [el1 - el2 for el1, el2 in zip(vect1, vect2)]


def vector_product(vect1, vect2):
    return [el1 * el2 for el1, el2 in zip(vect1, vect2)]


def vector_divide(vect1, vect2):
    return [el1 / el2 for el1, el2 in zip(vect1, vect2)]


def which_place(origin, line_to1, line_to2):
    line1 = vector_minus(line_to1, origin)
    line2 = vector_minus(line_to2, origin)
    judge = cross_product(line1, line2)

    if judge > 0:
        return "COUNTER_CLOCKWISE"
    if judge < 0:
        return "CLOCKWISE"
    if judge == 0:
        judge2 = line2[0]/line1[0]
        if judge2 < 0:
            return "ONLINE_BACK"
        if judge2 > 1:
            return "ONLINE_FRONT"
        else:
            return "ON_SEGMENT"


if __name__ == '__main__':
    xy_list = list(map(int, input().split()))
    p0_list = xy_list[:2]
    p1_list = xy_list[2:]
    Q = int(input())

    for i in range(Q):
        p2_list = list(map(int, input().split()))
        place = which_place(p0_list, p1_list, p2_list)
        print(place)



Fixed submission:
# coding=utf-8


def cross_product(vect1, vect2):
    return vect1[0]*vect2[1] - vect1[1]*vect2[0]


def vector_plus(vect1, vect2):
    return [el1 + el2 for el1, el2 in zip(vect1, vect2)]


def vector_minus(vect1, vect2):
    return [el1 - el2 for el1, el2 in zip(vect1, vect2)]


def vector_product(vect1, vect2):
    return [el1 * el2 for el1, el2 in zip(vect1, vect2)]


def vector_divide(vect1, vect2):
    return [el1 / el2 for el1, el2 in zip(vect1, vect2)]


def which_place(origin, line_to1, line_to2):
    line1 = vector_minus(line_to1, origin)
    line2 = vector_minus(line_to2, origin)
    judge = cross_product(line1, line2)

    if judge > 0:
        return "COUNTER_CLOCKWISE"
    if judge < 0:
        return "CLOCKWISE"
    if judge == 0:
        try:
            judge2 = line2[0]/line1[0]
        except ZeroDivisionError:
            judge2 = line2[1]/line1[1]
        
        if judge2 < 0:
            return "ONLINE_BACK"
        if judge2 > 1:
            return "ONLINE_FRONT"
        else:
            return "ON_SEGMENT"


if __name__ == '__main__':
    xy_list = list(map(int, input().split()))
    p0_list = xy_list[:2]
    p1_list = xy_list[2:]
    Q = int(input())

    for i in range(Q):
        p2_list = list(map(int, input().split()))
        place = which_place(p0_list, p1_list, p2_list)
        print(place)
Buggy python submission (verdict: Runtime Error):
import math

a, b, C = map(int, input().split())

S = a * b * math.sin(C) * 0.5

c2 = a ** 2 + b ** 2 - 2 * a * b * math.cos(C)

c = sqrt(c2)

L = a + b + c

h = 2 * S / a

print(S)
print(L)
print(h)

Fixed submission:
import math

a, b, Cd = map(int, input().split())
Cr = math.radians(Cd)

S = a * b * math.sin(Cr) * 0.5

c2 = a ** 2 + b ** 2 - 2 * a * b * math.cos(Cr)

c = math.sqrt(c2)

L = a + b + c

h = 2 * S / a

print(S)
print(L)
print(h)
Buggy python submission (verdict: Runtime Error):
class Dice():
	def __init__(self, label):
		self.d = label
	
	def roll(self, drt):
		if drt == 'N':
			self.d[1], self.d[2], self.d[6], self.d[5] = self.d[2], self.d[6], self.d[5], self.d[1]
		elif drt == 'E':
			self.d[1], self.d[3], self.d[6], self.d[4] = self.d[4], self.d[1], self.d[3], self.d[6]
		elif drt == 'S':
			self.d[2], self.d[6], self.d[5], self.d[1] = self.d[1], self.d[2], self.d[6], self.d[5]
		elif drt == 'W':
			self.d[4], self.d[1], self.d[3], self.d[6] = self.d[1], self.d[3], self.d[6], self.d[4]
	
	def printl(self, lct):
		print(self.d[lct])
	
	def rot(self, drc):
		self.roll('N')
		if drc == 'r':
			self.roll('E')
		elif drc == 'l':
			self.roll('W')
		self.roll('S')
		
label = [0]	
label.extend(list(map(int, input().split())))
dice1 = Dice(label)
q = int(input())

ST = 'NNNNEEE'
SF = 'rrr'

for i in range(q):
	s = list(map(int, input().split()))
	for j in range(7):
		if dice1.d[1] == s[0]:
			break
		dice1.roll(ST[j])
	for k in range(3):
		if dice1.d[2] == s[1]:
			break
		dice1.rot(SF[j])
	dice1.printl(3)

Fixed submission:
class Dice():
	def __init__(self, label):
		self.d = label
	
	def roll(self, drt):
		if drt == 'N':
			self.d[1], self.d[2], self.d[6], self.d[5] = self.d[2], self.d[6], self.d[5], self.d[1]
		elif drt == 'E':
			self.d[1], self.d[3], self.d[6], self.d[4] = self.d[4], self.d[1], self.d[3], self.d[6]
		elif drt == 'S':
			self.d[2], self.d[6], self.d[5], self.d[1] = self.d[1], self.d[2], self.d[6], self.d[5]
		elif drt == 'W':
			self.d[4], self.d[1], self.d[3], self.d[6] = self.d[1], self.d[3], self.d[6], self.d[4]
	
	def printl(self, lct):
		print(self.d[lct])
	
	def rot(self, drc):
		self.roll('N')
		if drc == 'r':
			self.roll('E')
		elif drc == 'l':
			self.roll('W')
		self.roll('S')
		
label = [0]	
label.extend(list(map(int, input().split())))
dice1 = Dice(label)
q = int(input())

ST = 'NNNNEEE'
SF = 'rrr'

for i in range(q):
	s = list(map(int, input().split()))
	for j in range(7):
		if dice1.d[1] == s[0]:
			break
		dice1.roll(ST[j])
	for k in range(3):
		if dice1.d[2] == s[1]:
			break
		dice1.rot(SF[k])
	dice1.printl(3)
Buggy python submission (verdict: Runtime Error):
X = input()
Y = X ** 3
print(Y)

Fixed submission:
X = int(input())
Y = X ** 3
print(Y)
Buggy python submission (verdict: Runtime Error):
a,b = int(input().split())
M = a * b
print(M)

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

Buggy python submission (verdict: Runtime Error):
a,b = int(input()).split()
M = a * b
print(M)

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

Buggy python submission (verdict: Runtime Error):
a,b = input().split()
M = a * b
print(M)

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

Buggy python submission (verdict: Runtime Error):
a, b = input().split()
M = a * b
print(M)

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

h = S/3600
S = S%3600

m = S/60
s = S%60

print(':'.join(map(str,[h,m,s])))

Fixed submission:
S=int(input())

h = S//3600
S = S%3600

m = S//60
s = S%60

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

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

h = S//3600
S = S%3600

m = S//60
s = S%60

print(':'.join(map(str,[h, m, s])))

Fixed submission:
S=int(input())

h = S//3600
S = S%3600

m = S//60
s = S%60

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

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

h = S//3600
S = S%3600

m = S//60
s = S%60

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

Fixed submission:
S=int(input())

h = S//3600
S = S%3600

m = S//60
s = S%60

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

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

h = S//3600
S = S%3600

m = S//60
s = S%60

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

Fixed submission:
S=int(input())

h = S//3600
S = S%3600

m = S//60
s = S%60

print(h,m,s,sep=":")
Buggy python submission (verdict: Runtime Error):
nums=list(map(int,input().split()))

if nums[3] > nums[2] and nums[2] > nums[1]:
	print("Yes")
else:
	print("No")

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

if nums[2] > nums[1] and nums[1] > nums[0]:
	print("Yes")
else:
	print("No")
Buggy python submission (verdict: Runtime Error):
a = []
i = 0 //????????????

while True:
	n = input()
	if n == 0:
		break
	i += 1//?????????????????????
	print("Case {0} : {1}".format(i,n))

Fixed submission:

i = 0 #????????????

while True:
	n = input()
	if n == '0':
		break
	i += 1#?????????????????????
	print('Case {}: {}'.format(i,n))

Buggy python submission (verdict: Runtime Error):
a = []
i = 0 //????????????

while True:
	n = input()
	if n == 0:
		break
	i += 1//?????????????????????
	print("Case {0} : {1}".format([i,n]))

Fixed submission:

i = 0 #????????????

while True:
	n = input()
	if n == '0':
		break
	i += 1#?????????????????????
	print('Case {}: {}'.format(i,n))

Buggy python submission (verdict: Runtime Error):
i = 0 //????????????

while True:
	n = input()
	if n == 0:
		break
	i += 1//?????????????????????
	print("Case {0} : {1}".format(i,n))

Fixed submission:

i = 0 #????????????

while True:
	n = input()
	if n == '0':
		break
	i += 1#?????????????????????
	print('Case {}: {}'.format(i,n))

Buggy python submission (verdict: Runtime Error):
i = 0 //????????????

while True:
	n = input()
	if n == 0:
		break
	i += 1//?????????????????????
	print('Case {} : {}'.format(i,n))

Fixed submission:

i = 0 #????????????

while True:
	n = input()
	if n == '0':
		break
	i += 1#?????????????????????
	print('Case {}: {}'.format(i,n))

Buggy python submission (verdict: Runtime Error):
i = 0 //????????????

while True:
	n = map(int,input())
	if n == 0:
		break
	i += 1//?????????????????????
	
	print('Case {} : {}'.format(i,n))

Fixed submission:

i = 0 #????????????

while True:
	n = input()
	if n == '0':
		break
	i += 1#?????????????????????
	print('Case {}: {}'.format(i,n))

Buggy python submission (verdict: Runtime Error):
i = 0 #????????????

while True:
	n = map(int,input())
	if n == 0:
		break
	i += 1#?????????????????????
	
	print('Case {} : {}'.format(i,n))

Fixed submission:

i = 0 #????????????

while True:
	n = input()
	if n == '0':
		break
	i += 1#?????????????????????
	print('Case {}: {}'.format(i,n))
Buggy python submission (verdict: Runtime Error):
a, b = map(int,input().split())

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

print("{} {} {0:f}".format(d,r,f))

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

d = a // b
r = a % b
f = a / b

print('{0} {1} {2:f}'.format(d,r,f))
Buggy python submission (verdict: Runtime Error):
import math
r=int(input())

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



Fixed submission:
import math

r = float(input())

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

print('{0:f} {1:f}'.format(S,l))

Buggy python submission (verdict: Runtime Error):
import math
r=int(input())

print(math.PI*r**2, 2*math.PI*r)



Fixed submission:
import math

r = float(input())

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

print('{0:f} {1:f}'.format(S,l))

Buggy python submission (verdict: Runtime Error):
import math
r=float(input())

print(math.PI*r**2, 2*math.PI*r)



Fixed submission:
import math

r = float(input())

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

print('{0:f} {1:f}'.format(S,l))

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

r = map(float,input())

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

print('{0:f} {1:f}'.format(S,l))

Fixed submission:
import math

r = float(input())

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

print('{0:f} {1:f}'.format(S,l))
Buggy python submission (verdict: Runtime Error):

While True:
	H,W = map(int,input().split())
	if H ==0 and W == 0:
		break
	
	for i in (range H):
		for j in (range W):
			print("#", end="")
		print("")

Fixed submission:

while True:
	H,W = map(int,input().split())
	if H ==0 and W == 0:
		break
	
	for i in range (H):
		for j in range (W):
			print('#', end="")
		print("")
	print("")
Buggy python submission (verdict: Runtime Error):
N = int(input())
a = [input() for i in range(N)]

b = []
j = N-1

while j >= 0:
	b.append(a[j])
	j -= 1
	
print(b)

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

b = []
j = N-1

while j > 0:
	print("{} ".format(a[j]),end = "")
	j -= 1
print(a[j])
Buggy python submission (verdict: Runtime Error):
n, m = map(int, input().split())

Mat = [[]]

for i in range(n):
	row = list(map(int, input().split()))
	Mat.append(row)

b = []

for j in range(m):
	b.append(int(input()))

c = [0 for k in range(n)]

for l in range(n):
	for l2 in range(m):
		c[l] += (Mat[l][l2] * b[l2])
	print(c[l])

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

Mat = []

for i in range(n):
	row = list(map(int, input().split()))
	Mat.append(row)

b = []

for j in range(m):
	b.append(int(input()))

c = [0 for k in range(n)]

for l in range(n):
	for l2 in range(m):
		c[l] += (Mat[l][l2] * b[l2])
	print(c[l])
Buggy python submission (verdict: Runtime Error):
n, m ,l = map(int, input().split())

A = [list(map(int,input().split())) for i in range(n)]
B = [list(map(int,input().split())) for j in range(m)]

C = [[0 for i in range(l)] for j in range(n)]

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

Cp = [print(" ".join(map(str, C[i]))) for i in range(n)]

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

A = [list(map(int,input().split())) for i in range(n)]
B = [list(map(int,input().split())) for j in range(m)]

C = [[0 for i in range(l)] for j in range(n)]

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

Cp = [print(" ".join(map(str, C[i]))) for i in range(n)]

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

A = [list(map(int,input().split())) for i in range(n)]
B = [list(map(int,input().split())) for j in range(m)]

C = [[0 for i in range(l)] for j in range(n)]

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

Cp = [print(" ".join(map(str, C[i]))) for i in range(n)]
			

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

A = [list(map(int,input().split())) for i in range(n)]
B = [list(map(int,input().split())) for j in range(m)]

C = [[0 for i in range(l)] for j in range(n)]

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

Cp = [print(" ".join(map(str, C[i]))) for i in range(n)]

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

A = [list(map(int,input().split())) for i in range(n)]
B = [list(map(int,input().split())) for j in range(m)]

C = [[0 for i in range(l)] for j in range(n)]

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

Cp = [print(" ".join(map(str, C[i]))) for i in range(n)]
			

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

A = [list(map(int,input().split())) for i in range(n)]
B = [list(map(int,input().split())) for j in range(m)]

C = [[0 for i in range(l)] for j in range(n)]

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

Cp = [print(" ".join(map(str, C[i]))) for i in range(n)]
Buggy python submission (verdict: Runtime Error):
W = input()

T = []
while True:
	R = input().lower()
	if R == "END_OF_TEXT":
		break
	T.append(R)

T = ''.join(T)
print(T.count(W))

Fixed submission:
W = input().lower()

T = []
while True:
	R = input()
	if R == "END_OF_TEXT":
		break
	R = R + " "
	T.append(R)

T = (''.join(T)).lower()
T = T.split()
print(T.count(W))
Buggy python submission (verdict: Runtime Error):
# coding=utf-8

Q = int(input())

S = set()

for i in range(Q):
    qtype, number = map(int, input().split())
    if qtype == 0:
        S.add(number)
        print(len(S))
    if qtype == 1:
        if number in S:
            print(1)
        else:
            print(0)
    if qtype == 2:
        S.remove(number)



Fixed submission:
# coding=utf-8

Q = int(input())

S = set()

for i in range(Q):
    qtype, number = map(int, input().split())
    if qtype == 0:
        S.add(number)
        print(len(S))
    elif qtype == 1:
        if number in S:
            print(1)
        else:
            print(0)
    elif qtype == 2:
        try:
            S.remove(number)
        except KeyError:
            pass

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

Q = int(input())

S = set()

for i in range(Q):
    qtype, number = map(int, input().split())
    if qtype == 0:
        S.add(number)
        print(len(S))
    elif qtype == 1:
        if number in S:
            print(1)
        else:
            print(0)
    elif qtype == 2:
        S.remove(number)



Fixed submission:
# coding=utf-8

Q = int(input())

S = set()

for i in range(Q):
    qtype, number = map(int, input().split())
    if qtype == 0:
        S.add(number)
        print(len(S))
    elif qtype == 1:
        if number in S:
            print(1)
        else:
            print(0)
    elif qtype == 2:
        try:
            S.remove(number)
        except KeyError:
            pass
Buggy python submission (verdict: Runtime Error):
# coding=utf-8
import math


r = int(input())
print('{0:f} {1:f}'.format(r*r*math.pi, 2*r*math.pi))

Fixed submission:
# coding=utf-8
import math


r = float(input())
print('{0:f} {1:f}'.format(r*r*math.pi, 2*r*math.pi))
Buggy python submission (verdict: Runtime Error):
# coding=utf-8
while True:
    m, f, r = map(int, input().split())
    if m == 0 and f == 0 and r == 0:
        break
    if m == -1 or f == -1:
        print('F')
    elif (m + f) >= 80:
        print('A')
    elif (m+f) >= 65:
        print('B')
    elif (m+f) >= 50:
        print('C')
    elif (m+f) >= 30:
        if r >= 50:
            print('C')
        else:
            print('D')
    else:
        print('F')

Fixed submission:
# coding=utf-8
while True:
    m, f, r = map(int, input().split())
    if m == -1 and f == -1 and r == -1:
        break
    if m == -1 or f == -1:
        print('F')
    elif (m + f) >= 80:
        print('A')
    elif (m+f) >= 65:
        print('B')
    elif (m+f) >= 50:
        print('C')
    elif (m+f) >= 30:
        if r >= 50:
            print('C')
        else:
            print('D')
    else:
        print('F')
Buggy python submission (verdict: Time Limit Exceeded):
# coding=utf-8


n = int(input())
S = list(map(int, input().split()))
q = int(input())
T = list(map(int, input().split()))
C = 0

for i in range(q):
    if T[i] in S:
        C += 1
print(C)

Fixed submission:
# coding=utf-8


n = int(input())
S = list(map(int, input().split()))
q = int(input())
T = list(map(int, input().split()))
S = set(S)
T = set(T)

satisfied_set = S & T

C = len(satisfied_set)

print(C)
Buggy python submission (verdict: Runtime Error):
import argparse

def main():
    l = []

    parser = argparse.ArgumentParser()
    parser.add_argument("filename", help="The filename to be processed")
    args = parser.parse_args()

    if args.filename:
        with open(args.filename) as f:
            str = f.read()
            str = str[::-1]
            print(str)

if __name__ == "__main__":
    main()


Fixed submission:
def main():
    l = []

    str = input()
    str = str[::-1]

    print(str)

if __name__ == "__main__":
    main()
Buggy python submission (verdict: Runtime Error):
def main():
    # x?????????????¨??????????
    n = int(input())
    if n <= 1 or n >= 101:
        print("invalid answer.")
        return

    ans = n * 3
    print("{0}".format(ans))

if __name__ == '__main__':
    main()

Fixed submission:
def main():
    n = int(input())
    if n <= 0 or n >= 101:
        print("invalid answer.")
        return

    ans = n * n * n
    print("{0}".format(ans))

if __name__ == '__main__':
    main()
Buggy python submission (verdict: Runtime Error):
def main():
    data = []
    while 1:
        n = input().split()
        ans = int(n[0])
        length = data.__len__()
        data.append(ans)

        if n == 0:
            break

        if length > 10001:
            print("Too Large")
            break
        else:
            for i in range(0,9999):
                d_val = data[i]

                if d_val != 0:
                    print("Case{0}:{1}".format(i+1,d_val))
                else:
                    break

if __name__ == '__main__':
    main()

Fixed submission:
def main():
    data = []
    while 1:
        n = input().split()
        ans = int(n[0])

        if ans == 0:
            break

        data.append(ans)


    length = len(data)
    what_large = length > 10000

    if what_large:
        print("Too Large")
    else:
        for i in range(len(data)):
            d_val = data[i]

            if d_val != 0:
                print("Case {0}: {1}".format(i+1,d_val))
            else:
                break

if __name__ == '__main__':
    main()

Buggy python submission (verdict: Runtime Error):
def main():
    data = []
    while 1:
        n = input().split()
        ans = int(n[0])
        length = data.__len__()
        data.append(ans)

        if ans == 0:
            break

    if length > 10000:
        print("Too Large")
    else:
        for i in range(0,10000):
            d_val = data[i]

            if d_val != 0:
                print("Case{0}:{1}".format(i+1,d_val))
            else:
                break

if __name__ == '__main__':
    main(

Fixed submission:
def main():
    data = []
    while 1:
        n = input().split()
        ans = int(n[0])

        if ans == 0:
            break

        data.append(ans)


    length = len(data)
    what_large = length > 10000

    if what_large:
        print("Too Large")
    else:
        for i in range(len(data)):
            d_val = data[i]

            if d_val != 0:
                print("Case {0}: {1}".format(i+1,d_val))
            else:
                break

if __name__ == '__main__':
    main()
Buggy python submission (verdict: Runtime Error):
def main():
    data = []
    while 1:
        n = input().split()
        a = int(n[0])
        b = int(n[1])
        c = int(n[2])
        div = 0

        for i in range(a,b):
            if c % i == 0:
                div += 1
            else:
                pass

        print(div)

if __name__ == '__main__':
    main()

Fixed submission:
def main():
    data = []
    n = input().split()
    a = int(n[0])
    b = int(n[1])
    c = int(n[2])
    div = 0

    one_div=(a == b) and c % a == 0 or c % b == 0

    if one_div:
        div = 1

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

    print(div)

if __name__ == '__main__':
    main()

Buggy python submission (verdict: Runtime Error):
def main():
    data = []
    while 1:
        n = input().split()
        a = int(n[0])
        b = int(n[1])
        c = int(n[2])
        div = 0

        for i in range(a,b):
            if c % i == 0:
                div += 1
            else:
                pass

        print(div)

if __name__ == '__main__':
    main()

Fixed submission:
def main():
    data = []
    n = input().split()
    a = int(n[0])
    b = int(n[1])
    c = int(n[2])
    div = 0

    one_div=(a == b) and c % a == 0 or c % b == 0

    if one_div:
        div = 1

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

    print(div)

if __name__ == '__main__':
    main()

Buggy python submission (verdict: Runtime Error):
def main():
    data = []
    while 1:
        n = input().split()
        a = int(n[0])
        b = int(n[1])
        c = int(n[2])
        div = 0

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

        print(div)

if __name__ == '__main__':
    main()

Fixed submission:
def main():
    data = []
    n = input().split()
    a = int(n[0])
    b = int(n[1])
    c = int(n[2])
    div = 0

    one_div=(a == b) and c % a == 0 or c % b == 0

    if one_div:
        div = 1

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

    print(div)

if __name__ == '__main__':
    main()
Buggy python submission (verdict: Runtime Error):
import math


def main():
    data = []
    n = input().split()
    a = int(n[0])
    b = int(n[1])

    divans = a / b
    intdiv = int(divans)
    divr = a % b

    print("{0} {1} {:.5f}".format(intdiv, divr, divans))


if __name__ == '__main__':
    main()

Fixed submission:
def main():
    data = []
    n = input().split()
    a = int(n[0])
    b = int(n[1])

    divans = a / b
    intdiv = int(divans)
    divr = a % b

    print("{0} {1} {2:.5f}".format(intdiv, divr, divans))
    
if __name__ == "__main__":
    main()