Buggy python submission (verdict: Runtime Error):

n = int(input())
a = list(map(int,input().split()))

l = []
ans = 0

for x in range(n)
    for _ in range(10000000):
        if a[x]%2 == 0 and a_min > 0:
            ans += 1
            continue
        else:
            l.append(ans)
            ans = 0
            break

print(min(l))

Fixed submission:

n = int(input())
a = list(map(int,input().split()))

l = []
ans = 0

for x in range(n):
    for _ in range(10000000):
        if a[x]%2 == 0 and a[x] > 0:
            a[x] = a[x]//2
            ans += 1
            continue
        else:
            l.append(ans)
            ans = 0
            break

print(min(l))

Buggy python submission (verdict: Runtime Error):

n = int(input())
a = list(map(int,input().split()))

a_min = min(a)
ans = 0
for _ in range(10000000):
    if a_min%2 == 0 and a_min > 0:
        ans += 1
        a_min = a_min//2
        contnue
    else:
        break

for y in a:
    if y%2==1:
        ans -= 100000000
        continue



if ans > 0:
    print(ans)
else:
    print(0)

Fixed submission:

n = int(input())
a = list(map(int,input().split()))

l = []
ans = 0

for x in range(n):
    for _ in range(10000000):
        if a[x]%2 == 0 and a[x] > 0:
            a[x] = a[x]//2
            ans += 1
            continue
        else:
            l.append(ans)
            ans = 0
            break

print(min(l))

Buggy python submission (verdict: Runtime Error):

n = int(input())
a = list(map(int,input().split()))

a_min = min(a)
ans = 0
for x in range(2,1000000,2):
    if a_min%2 == 0 and a_min > 0:
        ans += 1
        a_min = a_min//2
        contnue
    else:
        break

for y in a:
    if y%2==1:
        ans -= 100000000
        continue



if ans > 0:
    print(ans)
else:
    print(0)

Fixed submission:

n = int(input())
a = list(map(int,input().split()))

l = []
ans = 0

for x in range(n):
    for _ in range(10000000):
        if a[x]%2 == 0 and a[x] > 0:
            a[x] = a[x]//2
            ans += 1
            continue
        else:
            l.append(ans)
            ans = 0
            break

print(min(l))

Buggy python submission (verdict: Runtime Error):

n = int(input())
a = list(map(int,input().split()))

a_min = min(a)
ans = 0
for x in range(2,1000000,2):
    if a_min%2 == 0 and a_min > 0:
        ans += 1
        contnue
    else:
        break

for y in a:
    if y%2==1:
        ans -= 100000000
        continue



if ans > 0:
    print(ans)
else:
    print(0)

Fixed submission:

n = int(input())
a = list(map(int,input().split()))

l = []
ans = 0

for x in range(n):
    for _ in range(10000000):
        if a[x]%2 == 0 and a[x] > 0:
            a[x] = a[x]//2
            ans += 1
            continue
        else:
            l.append(ans)
            ans = 0
            break

print(min(l))

Buggy python submission (verdict: Runtime Error):

n = int(input())
a = list(map(int,input().split()))

a_min = min(a)
ans = 0
for x in range(2,1000000,2):
    if a_min%2 == 0 and a_min > 0:
        a += 1
        contnue
    else:
        break

for y in a:
    if y%2==1:
        ans -= 100000000



if ans > 0:
    print(ans)
else:
    print(0)

Fixed submission:

n = int(input())
a = list(map(int,input().split()))

l = []
ans = 0

for x in range(n):
    for _ in range(10000000):
        if a[x]%2 == 0 and a[x] > 0:
            a[x] = a[x]//2
            ans += 1
            continue
        else:
            l.append(ans)
            ans = 0
            break

print(min(l))