Problem:


Score : 200 points

Problem Statement

There are N positive integers written on a blackboard: A_1, ..., A_N.

Snuke can perform the following operation when all integers on the blackboard are even:

Replace each integer X on the blackboard by X divided by 2.

Find the maximum possible number of operations that Snuke can perform.

Constraints

1 \leq N \leq 200

1 \leq A_i \leq 10^9

Input

Input is given from Standard Input in the following format:

N
A_1 A_2 ... A_N

Output

Print the maximum possible number of operations that Snuke can perform.

Sample Input 1

3
8 12 40

Sample Output 1

2

Initially, [8, 12, 40] are written on the blackboard.
Since all those integers are even, Snuke can perform the operation.

After the operation is performed once, [4, 6, 20] are written on the blackboard.
Since all those integers are again even, he can perform the operation.

After the operation is performed twice, [2, 3, 10] are written on the blackboard.
Now, there is an odd number 3 on the blackboard, so he cannot perform the operation any more.

Thus, Snuke can perform the operation at most twice.

Sample Input 2

4
5 6 8 10

Sample Output 2

0

Since there is an odd number 5 on the blackboard already in the beginning, Snuke cannot perform the operation at all.

Sample Input 3

6
382253568 723152896 37802240 379425024 404894720 471526144

Sample Output 3

8



Sample input:
3
8 12 40


Sample output:
2

Submission status: Runtime Error

Solution code:
N = int(input())
A = input()
X = 1000000000
count = 0
for i in range(N):
  while A[i] % 2 ==0:
    A[i] = A[i]//2
    count +=1
  if count < X:
    X = count
    count = 0
print(X)

Submission status: Runtime Error

Solution code:
n = int(input())
a=[]
for i in range(n):
  a.append(int(input()))
count = 0
success = True
while True:
  for i, ele in enumerate(a):
    if ele % 2 == 0:
      a[i] = ele / 2
    else:
      success = False
  if not success:
    break
  count += 1
print(count)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
B = [ ]
c = 'non'
for i in A:
  B.append(list(bin(i)))
for i in range(10000):  
  for j in range(N):
    if B[j][-i-1] == '0':
      continue
    else:
      c = i
      break
  if c == 0:
    print(0)
    break
  elif c>0:
    print(i)
    break

Submission status: Runtime Error

Solution code:
# B - Shift only
# https://atcoder.jp/contests/abc081/tasks/abc081_b

N = input()
nums = list(map(int,input().split()))

count= 0

while all(a % 2 == 0 for num in nums):
    nums = [(num/2) for num in nums]
    count +=  1

print(count)

Submission status: Runtime Error

Solution code:
# B - Shift only
# https://atcoder.jp/contests/abc081/tasks/abc081_b

N = input()
nums = list(map(int,input().split()))

count= 0

while all(a % 2 == 0 for num in nums):
    num = [(num/2) for num in nums]
    count +=  1

print(count)

Submission status: Runtime Error

Solution code:
str=input()

a=str[0]
b=str[len(str)-1]
c=len(str)-2

print(a+str(c)+b)

Submission status: Runtime Error

Solution code:
N = int(input())
count = 0
nlist = map(int, input().split())

while(True):
  for i in range(N):
    nlist = [n/2 for n in nlist]
    if nlist[i]%2 != 0:
      break

  count++

Submission status: Runtime Error

Solution code:
N = int(input())
li = list(map(int,input().split()))	
count = 0

while:
	for i in range(N):
		if li[i]%2!=0:
			break
	count += 1
print(count)

Submission status: Runtime Error

Solution code:
count = int(input())
numbers = [int(num) for num in input().split()]

counter = 0
while True:
  tmp = 0
  for item in numbers:
    tmp += item % 2
  if tmp > 0:
    break
  counter ++
  numbers = [item / 2 for item in numbers]
print(counter)

Submission status: Runtime Error

Solution code:
count = input()
numbers = [int(num) for num in input().split()]

counter = 0
while True:
  tmp = 0
  for item in numbers:
    tmp += item % 2
  if tmp > 0:
    break
  counter ++
  numbers = [item / 2 for item in numbers]
print(counter)

Submission status: Runtime Error

Solution code:
count = input()
numbers = (int(num) for num in input().split())

counter = 0
while True:
  tmp = 0
  for item in numbers:
    tmp += item % 2
  if tmp > 0:
    break
  counter ++
  numbers = [item / 2 for item in numbers]
print(counter)

Submission status: Runtime Error

Solution code:
count = input()
numbers = map(int, input().split())

counter = 0
while True:
  tmp = 0
  for item in numbers:
    tmp += item % 2
  if tmp > 0:
    break
  counter ++
  numbers = [item / 2 for item in numbers]
print(counter)

Submission status: Runtime Error

Solution code:
count = input()
numbers = list(map(int, input().split(' ')))

counter = 0
while True:
  tmp = 0
  for item in numbers:
    tmp += item % 2
  if tmp > 0:
    break
  counter ++
  numbers = [item / 2 for item in numbers]
print(counter)

Submission status: Runtime Error

Solution code:
count = input()
numbers = map(int, input().split(' '))

counter = 0
while True:
  tmp = 0
  for item in numbers:
    tmp += item % 2
  if tmp > 0:
    break
  counter ++
  numbers = [item / 2 for item in numbers]
print(counter)

Submission status: Runtime Error

Solution code:
count = int(input())
numbers = map(int, input().split(' '))

counter = 0
while True:
  for item in numbers:
    if item % 2 == 1:
      break
  	else:
      counter += 1
  numbers = [item / 2 for item in numbers]

print(counter)

Submission status: Runtime Error

Solution code:
import math

N=int(input())
a = input().split()

count=0
while True:
    for i in range(len(a_num)):
        print(a_num[i],a_num[i]%2,math.floor(a_num[i]/2))
        
        a_num[i]=math.floor(a_num[i]/2)
    print("========")    
    count +=1
    if a_num[i]%2 != 0:
        #print ("it's 1!")
        break
print(count-1)

Submission status: Runtime Error

Solution code:
import numpy as np

n = int(input())
a = np.array(readline().split(), dtype=np.int64)

ans = 0
while np.all(a&1 == 0):
    a >>= 1 
    ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
N = input()  #一応読むけど、ループ回せば不要では
aList=input().split()


opCnt = 0
isAllE = True  #奇数見つかるまでは見なしTrue

while isAllE:
  for a in aList:
    if a%2 == 1:
      isAllE = False
  else:
    opCnt = opCnt + 1

print(opCnt)

Submission status: Runtime Error

Solution code:
N = input()  #一応読むけど、ループ回せば不要では
aList=input().split()


opCnt = 0
isAllE = True  #奇数見つかるまでは見なしTrue

while isAllE
  for a in aList:
    if a%2 == 1:
      isAllE = False
  else:
    opCnt = opCnt + 1

print(opCnt)

Submission status: Runtime Error

Solution code:
import math
N = int(input())
li = list(map(int, input().split()))
ans = math.inf
for i in li:
    cnt = 0
    if i%2==0:
        tudukeru = True
    else:
        tudukeru = False
        ans = 0
    while tudukeru:
        if i%2 == 0:
            i = i//2
            cnt += 1
        else:
            tudukeru = False
            if cnt < ans:
                ans = cnt
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
nums = [int(i) for i in input().split()]
ans = 0
while Ture:
  if [i for i in if i % 2 == 1]:
    break
  nums = [ i//2 for i in nums]
  ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
input()
nums = list(map(int, input().split()))
 
i = 0
while all(n % 2 == 0 for n in num):
  nums = [n/2 for n in nums]
  i += 1
 
print(i)

Submission status: Runtime Error

Solution code:
input()

nums = list(map(int, input().split()))

i = 0

while all(n % 2 == 0 for n in num):
  nums = [n / 2 for n in nums]
  i += 1

print(i)

Submission status: Runtime Error

Solution code:
input()
num = list(map(int, input().split()))

i = 0
while all(num % 2 == 0):
  num // 2
  i += 1
  
print(i)

Submission status: Runtime Error

Solution code:
A = list(map(int, input().split()))
count = 0
while all(a % 2 == 0 for a in A)
	A = [a % 2 for a in A]
 	count += 1
print(count)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int,input().split()))
n = 0
can = True

while can:
    for i in range(N):
        if A[i]%2 != 0:
            can = False
            break

        elif A[i]%2 == 0:         
            A[i] = A[i] // 2
            n += 1

        elif:
            can = False
            break

print(n)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int,input().split()))
n = 0
can = True

while can:
    for i in range(N):
        if A[i]%2 != 0:
            can = False
            break

   if A[i]%2 == 0:         
            A[i] = A[i] // 2
            n += 1

    elif:
        can = False
        break

print(n)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int,input().split()))
n = 0
can = True

while can:

    for i in range(N):
        if A[i]%2 != 0:
            can = False
            break

       elif A[i]%2 == 0:         
            A[i] = A[i] // 2
            n += 1

print(n)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int,input().split()))
n = 0
can = True

while can:

    for i in range(N):
        if A[i]%2 == 1:
            can = False
            break

       elif A[i]%2 == 0:         
            A[i] = A[i] // 2
            n += 1

        else:
            can = False
            break

print(n)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int,input().split()))
n = 0
can = True

while can:
    for i in range(N):
        if A[i]%2 == 0:
            A[i] = int(A[i]/2)
            n += 1

       else:
            can = False
            break

print(n)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int,input().split()))
n = 0
can = True

while can:
    n += 1
    for i in range(N):
        if A[i]%2 == 0:
            A[i] = (A[i]/2)
 
       else:
            can = False
            break

print(n)

Submission status: Runtime Error

Solution code:
N = int(input())
A = map(int,input().split())
n = 0
can = True

while can:
    for i in range(N):
        if A[i]%2 == 0:
            A[i] = (A[i]/2)
            n += 1
        else:
            break

print(n)

Submission status: Runtime Error

Solution code:
N = int(input())
A = map(int,input().split())
n = 0
can = True

while can:
    for i in range(N):
        if A[i]%2 == 0:
            A[i] = (A[i]/2)
            n += 0
        else:
            break

print(n)

Submission status: Runtime Error

Solution code:
N = int(input())
A = map(int,input().split())
n = 0
can = True

while can:
    for i in range(N):
        if A[i]%2 == 0:
            A[i] = (A[i]/2)
            n += 0
    else:
        break

print(n)

Submission status: Runtime Error

Solution code:
N = int(input())
A = [int(i) for i in input().split()]
count = 0
can = True
while can :
	count += 1
	for i in range(N) :
		if A[i] % 2 == 0 :
			A[i] = int( A[i] / 2 ) 
		else :
			count -= 1
			can = False
			break
print(en)

Submission status: Runtime Error

Solution code:
N = int(input())
A = [input() for i in range(N)]
count = 0 
can = True
while can:
  count += 1
  for i in range(N):
    if A[i]%2 == 0:
      A[i] = int(A[i]/2)
    else:
      count-=0
      can = False
      break
print(count)

Submission status: Runtime Error

Solution code:
N=int(input())
S=int(input().split())
i=0
while S%2!==0:
i+=1
print(i)

Submission status: Runtime Error

Solution code:
N=int(input())
S=int(input().split())
i=0
while S%2!==0
i+=1
print(i)

Submission status: Runtime Error

Solution code:
n=int(input())
a=[map(int,input().split())]

for A in a:
    cnt=0
    while A%2==0:
        A=A//2
        cnt=cnt+1

print(cnt)

Submission status: Runtime Error

Solution code:
num = int(input())
line = list(map(int,input().split()))
count = True
count_num = 0
while count:
    for i in range(num):
        if line[i] % 2 != 0:
            count = False
    if count:
        for i in range(num):
            line[i] /= 2
     count_num += 1     
print(count_num)

Submission status: Runtime Error

Solution code:
n=int(input())
a=input()

for A in a:
    while int(A)%2==0:
        print(A)
        if int(A)%2==1:
            break

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
 
count = 0
while True:
  A, mod = zip([divmod(a, 2) for a in A])
  if sum(mod) > 0:
    break
  count += 1
print(count)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))

count = 0
while True:
  A, mod = zip([divmod(a, 2) for a in A])
  if sum(mod) > 0:
    break
  count += 1
print(count)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))

count = 0
while True:
  A, mod = zip([divmod(a, 2) for a in A])
  if sum(mod) > 0:
    break
  count++
print(count)

Submission status: Runtime Error

Solution code:
s = int,input()
i = list(int,input())

Submission status: Runtime Error

Solution code:
N = int(input)
A = list(map(int, input().split()))

f = True
cnt = 0
while(f):
  for i in range(N):
    if A[i]%2 == 0:
      A[i] = A[i]//2
      continue
    f = False
  if f:
    cnt += 1

print(cnt)

Submission status: Runtime Error

Solution code:
n: int = input()
number: int = []
count: int = 0
flag: bool = False

number = list(map(int, input().split()))
while flag != True:
    tmp: int = []
    for n in number:
        if n % 2 == 0:
            tmp.append(n / 2)

        else:
            flag = True
            break

    if flag:
        print(count)
        break

    number = tmp
    count += 1

Submission status: Runtime Error

Solution code:
n: int = input()
number: int = [input().split()]
count: int = 0
flag: bool = False

while flag != True:
    tmp: int = []
    for n in number:
        if n % 2 == 0:
            tmp.append(n / 2)

        else:
            flag = True
            break

    if flag:
        print(count)
        break

    number = tmp
    count += 1

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python3

import sys

def main():
    n = int(input())
    imax = None
    dmax = 0
    for i in range(2, n + 1):
        print("? {} {}".format(1, i))
        sys.stdout.flush()
        dist = int(input())
        if dist > dmax:
            dmax = dist
            imax = i
    imax2 = None
    dmax2 = 0
    for i in range(1, n + 1):
        if i == imax2:
            continue
        print("? {} {}".format(imax, i))
        sys.stdout.flush()
        dist = int(input())
        if dist > dmax2:
            dmax2 = dist
            imax2 = i
    print("! {} {}".format(imax, imax2))

if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
n = int(input())
an = map(int, input().split())

count = 0
flg = 0
while flg == 0:
  for i in n:
    if (int(an[i]))%2 == 1:
      flg = 1
    elif i == n-1 && flg == 0:
      count = count + 1

Submission status: Runtime Error

Solution code:
n=input()
li = list(map(int,input().split()))

ans = 0
	while li % 2 == 0:
		li /= 2
		ans += 1
	return ans

  print(ans)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = int(input())
x = int(input())

print([i*500 + j*100 + k*50 for i in range(a+1) for j in range(b+1) for k in range(c+1)].count(x))

Submission status: Runtime Error

Solution code:
# B - Shift Only
import sys
import clipboard

# テストケースが複数行の場合、iOSだと一気に読み込んでしまうので
# 1行ずつ読み込むように、テキストファイルにいったんコピーする
if sys.platform == 'ios':
	sample = clipboard.get()
	file = open('input_file.txt', 'w')
	file.write(sample)
	file.close()
	sys.stdin = open('input_file.txt')
		
						
input()
A = list(map(int, input().split()))
count = 0
while all(a % 2 == 0 for a in A):
    A = [a/2 for a in A]
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int, input().split()))
d=[]
for c in range(n):
  b=0
  while a[c]%2==0:
    a[c]=int(a[c]/2)
    b+=1
  d[c].append(b)
print(max(d))

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int, input().split()))
d=[]
for c in range(n):
  b=0
  while a[c]%2==0:
    a[c]=a[c]//2
    b+=1
  d[c].append(b)
print(max(d))

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int, input().split()))
d=[]
for c in range(n):
  b=0
  while a[c]%2==0:
    a[c]=a[c]/2
    b+=1
  d[c].append(b)
print(max(d))

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
d=list()
for c in range(n):
  b=0
  while a[c]%2==0:
    a[c]=a[c]/2
    b+=1
  d[c].append(b)
print(max(d))

Submission status: Runtime Error

Solution code:
n = int(input())
nums = list(map(int, input().split()))

count = 0

while all(num%2 == 0 for num in nums):
  nums = [num/2 for num in nums]
  count += 1

print(num)

Submission status: Runtime Error

Solution code:
a,b = map(int, input().split())
c = a * b
if c % 2:
    print("Odd")
else:
    print("Even")

Submission status: Runtime Error

Solution code:
n=int(input())
A=list(map(int,input()))

c=0
while all(a%2==0 for a in A):
    A=[a/2 for a in A]
    c+=1
print(c)

Submission status: Runtime Error

Solution code:
n = int(input())
a = map(int, input().split())
counter = 0

# xが２で何回割れるかの関数
def how_much_time_divisible(x):
    ans = 0　
    while x % 2 == 0:
        x /= 2
        ans += 1
    return ans

# リストaの要素すべてに対して、2で何回割れるかの値に置き換えたい（ｂがその置き換わったリストである）
b = map(how_much_time_divisible, a)
# bの要素で最も小さいものが答えである
print(min(b))

Submission status: Runtime Error

Solution code:
import math

n = input()
a = list(map(int,input().split()))
ans = float('inf')
for i in a:
    ans = min(ans,len(bin(i) - bin(i).rfind('1') - 1)
              print(round(ans))

Submission status: Runtime Error

Solution code:
import numpy as np
import pandas as pd

a = input()
b = list(input())

Submission status: Runtime Error

Solution code:
N = int(input())
n_list = [int(i), for i in input().split("")]
ans = 0

while True:
  if [int(i) for n_list if i % 2 == 1]:
    break
  n_list = [i // 2 for i in n_list]
  ans += 1
print(ans)

Submission status: Runtime Error

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

def 割れる回数(a):
    回数 = 0
    while a % 2 == 0:
        回数 += 1
        a = a // 2
    return 回数

割れる回数のリスト = [割れる回数(a_i) for a_i in a]
答え = min(割れる回数のリスト)
print(答え)

Submission status: Runtime Error

Solution code:

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))

Submission status: Runtime Error

Solution code:

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)

Submission status: Runtime Error

Solution code:

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)

Submission status: Runtime Error

Solution code:

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)

Submission status: Runtime Error

Solution code:

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)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-

N = int(input())
a = list(map(int, input().split(" ")))
c = []

for i in a:
  count = 0
  while not(a % 2):
    a = int(a / 2)
    count += 1
    c.append(count)
print(min(c))

Submission status: Runtime Error

Solution code:
n = int(input(n))
a = input().split(" ")
for i in range(n):
    a[i] = int(a[i])
flag = False
cnt1 = 0
cnt2 = 0
while flag == False:
    for i in range(n):
        if a[i] % 2 == 0:
            cnt2 += 1
    if cnt2 == n:
        cnt2 = 0
        cnt1 += 1
        for i in range(n):
            a[i] = a[i]/2
    else:
        flag = True
print(cnt1)

Submission status: Runtime Error

Solution code:
input()
A = list(map(int, input().split))
count = 0
while all(a % 2 == 0 for a in A):
    A = [a/2 for a in A]
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
n = int(input())
a = int(input().split(" "))
flag = False
cnt1 = 0
cnt2 = 0
while flag == True:
  for i in range(n):
    if a[i] % 2 == 0:
      cnt2 += 1
  if cnt2 == n:
    cnt1 += 1
    for i in range(n):
      a[i] = a[i]/2
  else:
    flag == True
print(cnt1)

Submission status: Runtime Error

Solution code:
input()
A = list(map(int, input().split))
count = 0

while all(a % 2 == 0 for a in A):
    A = [a/2 for a in A]
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
n = input()
li = list(map(int,input().split())
cnt = 0
print(n)
print(li)

while True:
    for i in range(n):
        if li[i]%2 ==0:
            pass
        else:
            break

    for j in range(n):
        li[j]/=2

    cnt += 1

print(cnt)

Submission status: Runtime Error

Solution code:
n = input()
li = list(map(int,input().split())
cnt = 0

while True:
    for i in range(n):
        if li[i]%2 ==0:
            li[i]=li[i]/2
        else:
            break
        if(i==n-1):
            cnt += 1

print(cnt)

Submission status: Runtime Error

Solution code:
n = int(input())
line = list(map(int,input().split()))
box = []
for j in line:
  for i in range(30):
    if j % 2**i != 0:
      box.append(i-1)
      break
print(min(box))

Submission status: Runtime Error

Solution code:
n = int(input())
line = list(map(int,input().split()))
box = []
for j in line:
  for i in range(30):
    if j % 2**i != 0:
      box.append(i-1)
      break
print(max(box))

Submission status: Runtime Error

Solution code:
n = int(input())

a_str = input()
a_list = list(map(int,a_str.split()))

n_list = []
for a in a_list:
    if int(a) % 2 != 0:
        print(0)
        break
    else:
        i = 0
        while int(a) > 1 and int(a) % 2 == 0:
            a = int(a) / 2
            i += 1
    n_list.append(i)
print(min(n_list))

Submission status: Runtime Error

Solution code:
n = int(input())
line = map(int,input().split())
box = []
for i in line:
  for j in range(1,10):
    if i % 2**j != 0:
      box.append(j - 1)
answer = min(box)
print(answer)

Submission status: Runtime Error

Solution code:
n = int(input())
line = map(int,input().split())
box = []
for i in line:
  for j in range(1,9):
    if i % 2**j != 0:
      box.append(j - 1)
answer = min(box)
print(answer)

Submission status: Runtime Error

Solution code:
n = int(input())
li = list(map(int,input().split()))
prod = 1
for i in range(n):
	prod *= li[i]

count = 0
while (prod % (2**n)) == 0:
	prod = int(prod / (2**n))
	count += 1
print(count)

Submission status: Runtime Error

Solution code:
#(問3)ANS
iter = map(int,input().split())
all_list = []
for i in iter:
    all_list.append(i)
N = all_list[0]
A_list = all_list[1:]

iter_num_list = []
for a in A_list:
    count = 0
    while a%2 == 0:
        a = a/2
        count += 1
    iter_num_list.append(count)
ans = min(iter_num_list)
print(ans)

Submission status: Runtime Error

Solution code:
a = int(input())
b = map(int, input().split())

cnt = 0
endflag = False

while(True):
  for i in range(0,len(b)-1):
    if (3 == 0):
      b[i] = b[i] /2
    else:
      endflag = True
  cnt = cnt +1  
  if (endflag == True):
    break
      
print(cnt)

Submission status: Runtime Error

Solution code:
a = int(input())
b = map(int, input().split())

cnt = 0
endflag = False

while(True):
  for i in range(0,len(b)-1):
    if ((b[i] % 2 ) == 0):
      b[i] = b[i] /2
    else:
      endflag = True
  cnt = cnt +1  
  if (endflag == True):
    break
      
print(cnt)

Submission status: Runtime Error

Solution code:
a = int(input())
b = map(int, input().split())

cnt = 0
endflag = False

while(True):
  for i in range(0,len(b)-1):
    if (3 == 0):
      b[i] = b[i] /2
    else:
      endflag = true
  cnt = cnt +1  
  if (endflag == True):
    break
      
print(cnt)

Submission status: Runtime Error

Solution code:
a = int(input())
b = map(int, input().split())

cnt = 0
endflag = False

while(True):
  for i in range(0,len(b)-1):
    if ((b[i] % 2 ) == 0):
      b[i] = b[i] /2
    else:
      endflag = true
  cnt = cnt +1  
  if (endflag == True):
    break
      
print(cnt)

Submission status: Runtime Error

Solution code:
a = int(input())
b = map(int, input().split())

cnt = 0
endflag = False

while(True):
  for i in range(0,len(b)-1):
    if ((b[i] % 2 ) == 0):
      b[i] = b[i] /2
    else:
      endflag = true
  cnt = cnt +1  
  if (endflag):
    break
      
print(cnt)

Submission status: Runtime Error

Solution code:
a = int(input())
b = map(int, input().split())

cnt = 0
endflag = False

while(True):
  for i in range(0,len(b)-1):
    if ((b[i] % 2 ) == 0):
      b[i] = b[i] /2
    else:
      endflag = true
  cnt = cnt +1
  
  if (endflag):
    break;
      
print(cnt)

Submission status: Runtime Error

Solution code:
a = int(input())
b = map(int, input().split())

cnt = 0
endflag = false

while(True):
  for i in range(0,len(b)-1):
    if ((b[i] % 2 ) == 0):
      b[i] = b[i] /2
    else:
      endflag = true
  cnt = cnt +1
  
  if (endflag):
    break;
      
print(cnt)

Submission status: Runtime Error

Solution code:
def how_many_times_divisible(n):
    counter = 0
	
    while n % 2 == 0:
    	n //= 2
        counter +=1
    
    return counter
  
_ = input()
return min(map(lambda x: how_many_times_divisible(int(x)), input().split())

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
import numpy as np
A = np.array(A)
count = 0
while((A%2==0).all()):
    A=A/2
    count+=1
print(count)

Submission status: Runtime Error

Solution code:
input()
A = list(map(int, input().split()))
count == 0
while all(a % 2 == 0 for a in A)
	A == [a/2 for a in A]
  	count += 1
print(count)

Submission status: Runtime Error

Solution code:

import math
import itertools
import statistics
#import collections
n = int(input())
A = (map(int, input().split()))
count = 0
while sum(A)%2==0:
    for i in range(n):
        A[i] /= 2
    count += 1

print(count)

Submission status: Runtime Error

Solution code:

listimport math
import itertools
import statistics
#import collections
n = int(input())
A = (map(int, input().split()))
count = 0
while sum(A)%2==0:
    for i in range(n):
        A[i] /= 2
    count += 1

print(count)

Submission status: Runtime Error

Solution code:
import math
n = int(input())
a = list(map(int, input().split()))
mini = float(inf)
for i in a:
    mini = min(mini, len(bin(i)) - bin(i).rfind("1") - 1)
print(round(mini))

Submission status: Runtime Error

Solution code:
from functools import reduce
from math import gcd
n=int(input())
a=list(map(int,input().split()))
x=reduce(gcd,a)
ans=0

while x%2==0:
    ans+=1
    x//=2
print(ans)

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
ans=0

while all(i%2==0 for i in a):
    ans+=1
    for j in range(n):
        a[i]//=2
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int,input().split()))
ans = 10**9 // テキトーに大きな値入れておく
for i in range(n):
    count = 0
    while a[i] % 2 == 0:
      a[i] //= 2
      count += 1
    ans = min(ans, count)

print(ans)

Submission status: Runtime Error

Solution code:
input()

count = 0

while all(a % 2 == 0 for a in A):
  A = [a / 2 for a in A]
  count += 1
print(count)

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split())
ans=0

while True:
  if[i for i in a if i%2==1]:
    break
  a=[i/2 for i in a]
  ans+=1
print(ans)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 21 12:49:13 2020

@author: 藤原聖士
"""

N=int(input())
A=[]

check=0
answer=-1
for i in range(N):
    A.append(int(input()))
    check=A[i]
    #print(A)
    count=0
    while check % 2==0:
        count+=1
        check=check/2
        #print(check)
    if answer>count:
        answer=count
    elif answer== -1:
        answer=count
print(answer)

Submission status: Runtime Error

Solution code:
input()
A=list(map(int,input().split())
count=0

while all(a%2==0 for a in A):
    A=[a/2 for a in A]
    count +=1
print(count)

Submission status: Runtime Error

Solution code:
n = int(input())
nums = [int(i) for i in input().split()]
ans = 0
while True:
  if [i for i in nums if i % 2 == 1]
  	break
  nums = [i//2 for i in nums]
  ans += 1 
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
nums = [int(i) for i in input().split()]
ans = 0
while True:
  if [i for i in nums if i % 2 == 1]
  	break
  nums = [i/2 for i in nums]
  ans += 1   
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
nums = [int(i) for i in input().split()]
ans = 0

while True:
  if [i for i in nums if i % 2 == 1]
  	break
  nums = [i/2 for i in nums]
  ans += 1 
  
print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
nums = [int(i) for i in input().split()]
ans = 0

while True:
  if [i for i in nums if i % 2 == 1]
  	break
  nums = [i//2 for i in nums]
  ans += 1 
  
print(ans)

Submission status: Runtime Error

Solution code:
import sys

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

cnt=0
while 1:
  for i in range(n):
    if aa[i]%2>0
      print(cnt)
      sys.exit()
    aa[i]=aa[i]//2
  cnt+=1

Submission status: Runtime Error

Solution code:
from collections import defaultdict


def solve():
    N, K = map(int, input().split())
    A = list(map(int, input().split()))
    
    counter = defaultdict(int)
    for ai in A:
        counter[ai] += 1
    
    sorted_c = sorted(counter.values())
    ans = 0
    for i in range(len(counter) - K):
        ans += sorted_c[i]
    print(ans)


if __name__ == '__main__':
    solve()

Submission status: Runtime Error

Solution code:
N=int(input().rstrip().split())
An=list(map(int, input().rstrip().split()))
cnt=0
while True:
    if len(list(filter(lambda a:(a+1)%2, An))) < len(An):
        break
    An=list(map(lambda a:int(a/2), An))
    cnt+=1
print(cnt)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int,input().split()))
j = True
count = 0
while j :
     for i in range(N):
             if A[i] % 2 == 0 or A[i] == 0:
                     A[i] =/ 2
             else:
                     j = False
     if j == True:             
     	count += 1
print(count)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int,input().split()))
j = True
count = 0
while j:
     for i in A:
             if i % 2 == 0:
                     A[A.index(i)] = i / 2
             else:
                     j = False
                  	 break
     count += 1
print(count)

Submission status: Runtime Error

Solution code:
N = int(input('N='))
A = list(map(int,input().split()))
times = 0
while True:
  for i in A:
    amari += i%2
  if amari == 0:
    times += 1
    for j in A:
      j = j/2
  else:
    break
print(times)