Buggy python submission (verdict: Runtime Error):
def gcd(a,b):
    while b:
        a,b = b,a%b
    return a

def lcm(a,b):
    return (a*b)/int(gcd(a,b))

N = int(input())
T = []
for i in range(N):
    T.append(int(input()))

ans = T[0]
for i in range(1,N):
    ans = int(lcm(ans,T[i]))
print(int(ans))


Fixed submission:
def gcd(a,b):
    while b:
        a,b = b,a%b
    return a


def lcm(a,b):
    return (a*b) // gcd(a,b)


N = int(input())
T = []
for i in range(N):
    T.append(int(input()))

t = T[0]
for i in range(N - 1):
    t = lcm(t,T[i+1])
print(t)

Buggy python submission (verdict: Runtime Error):
import math
def lcm(a,b):
    return (a*b)/int(ath.gcd(a,b))

N = int(input())
T = []
for i in range(N):
    T.append(int(input()))

ans = T[0]
for i in range(1,N):
    ans = int(lcm(ans,T[i]))
print(int(ans))


Fixed submission:
def gcd(a,b):
    while b:
        a,b = b,a%b
    return a


def lcm(a,b):
    return (a*b) // gcd(a,b)


N = int(input())
T = []
for i in range(N):
    T.append(int(input()))

t = T[0]
for i in range(N - 1):
    t = lcm(t,T[i+1])
print(t)

Buggy python submission (verdict: Runtime Error):
import math
def lcm(a,b):
    return (a*b)/math.gcd(a,b)

N = int(input())
T = []
for i in range(N):
    T.append(int(input()))

ans = T[0]
for i in range(1,N):
    ans = lcm(int(ans),int(T[i]))
print(int(ans))

Fixed submission:
def gcd(a,b):
    while b:
        a,b = b,a%b
    return a


def lcm(a,b):
    return (a*b) // gcd(a,b)


N = int(input())
T = []
for i in range(N):
    T.append(int(input()))

t = T[0]
for i in range(N - 1):
    t = lcm(t,T[i+1])
print(t)

Buggy python submission (verdict: Runtime Error):
import math
def lcm(a,b):
    return a*b/math.gcd(a,b)

N = int(input())
T = []
for i in range(N):
    T.append(int(input()))

ans = T[0]
for i in range(1,N):
    ans = lcm(ans,T[i])
print(int(ans))


Fixed submission:
def gcd(a,b):
    while b:
        a,b = b,a%b
    return a


def lcm(a,b):
    return (a*b) // gcd(a,b)


N = int(input())
T = []
for i in range(N):
    T.append(int(input()))

t = T[0]
for i in range(N - 1):
    t = lcm(t,T[i+1])
print(t)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
T = []
for i in range(N):
    T.append(int(input()))

m = max(T)
mm = m
while True:
    flg =False
    for j in range(N):
        if m % T[j] != 0:
            flg = True
            break
    if flg == True:
        m += mm
    else:
        print(m)
        exit()


Fixed submission:
def gcd(a,b):
    while b:
        a,b = b,a%b
    return a


def lcm(a,b):
    return (a*b) // gcd(a,b)


N = int(input())
T = []
for i in range(N):
    T.append(int(input()))

t = T[0]
for i in range(N - 1):
    t = lcm(t,T[i+1])
print(t)

Buggy python submission (verdict: Time Limit Exceeded):
N = int(input())
T = [ int(input()) for i in range(N) ]

m = max(T)
mm = m
flg = False
while True:
    for i in T:
        if m % i != 0:
            flg =True

    if flg == False:
        break
    flg = False
    m += mm

print(m)


Fixed submission:
def gcd(a,b):
    while b:
        a,b = b,a%b
    return a


def lcm(a,b):
    return (a*b) // gcd(a,b)


N = int(input())
T = []
for i in range(N):
    T.append(int(input()))

t = T[0]
for i in range(N - 1):
    t = lcm(t,T[i+1])
print(t)