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())
num=list(map(int,input().split()))
cnt=0
while num[i]%2==0 for i in range(N):
  cnt+=1
  num[x]/2 for x in range(N):
print(N)

Submission status: Runtime Error

Solution code:
n = input()
for n:
  a[n] = input()

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
def pow(x):
    if x % 2 == 0:
        return 0
    else:
        return 1 + pow(x/2)
print(min(pow(_) for _ in a))

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 math
n = input()
a = list(map(int,input().split()))
ans = float("inf")
for i in a:
  ans = min(ans, len(bin(i)) - bin(i).rfing("1") - 1)
print(round(ans)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
n = int(input())
# スペース区切りの整数の入力
a_list = list(input())

count = 10000000

for i in range(len(a_list)):
    a_tmp = int(a_list[i])
    count_tmp = 0
    while int(a_tmp) % 2 == 0:
        a_tmp /= 2
        count_tmp += 1
    if count > count_tmp:
        count = count_tmp
print(count)

Submission status: Runtime Error

Solution code:
n = int(input())
A = list(map(int,input().split()))
counter = 0
end_judge = 0
while 1:
  
  for i in range(n):
  	if A[i]%2 == 1:
      end_judge = 1
    else:
      A[i] = A[i] % 2    
  counter += 1
  if end_judge == 1:
    break

print(counter)

Submission status: Runtime Error

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

count = 0
while True:
  x = 0
  for i in A:
    if i % 2 == 1:
      x = 1
  if x == 1:
    break
  else:
    A = A / 2
    count += 1

print(count)

Submission status: Runtime Error

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

print(count)

Submission status: Runtime Error

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

print(count)

Submission status: Runtime Error

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

print(count)

Submission status: Runtime Error

Solution code:
import math
N = int(input())
A = list(map(int,input().split()))
x =0
allgcd = A[0]
for i in range (1,N):
	allgcd = math.gcd(allgcd,A[i])
y = allgcd

while y%2 ==0:
	y=y/2
	x +=1

print(x)

Submission status: Runtime Error

Solution code:
import math
N = int(input())
A = list(map(int,input().split()))
x =0
allgcd = A[0]
for i in range (1,N):
	allgcd = math.gcd(allgcd,A[i])
y = allgcd

while y%2 ==0:
	y=y/2
	x +=1


print(x)

Submission status: Runtime Error

Solution code:
n=input()
s=list(input())
sp=0
for i in int(n):
    if s[i]%2==0:
        sp+=1
        continue
    else:
        break
print(sp)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
a = map(int,input().split())
ans = 1000
tmp = 0
for i in a:
    tmp = 0
    while i % 2 == 0:
        i = i / 2
        tmp += 1
    if max > tmp:
        ans = tmp
print(ans)

Submission status: Runtime Error

Solution code:
firstNum = int(input())
numList = list(map(int, input().split())):
flag = 0
count = 0

while flag==0:
    for i in range(firstNum):
        if numList[i]%2 != 0:
            flag = 1

    if flag == 1:
        break
    
    if flag == 0:
        for j in range(firstNum):
            numList[j] = numList[j]/2
    
    count += 1

print(count)

Submission status: Runtime Error

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

res = 0

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

print(res)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

count = 0
roop = 0
while reduce(lambda x,y:x*y, AList) % 2 == 0:
	for i in range(N):
		AList[i] = AList[i] / 2
		if AList[i] % 2 == 0:
			break
		count += 1

roop = count // N
print(roop)

Submission status: Runtime Error

Solution code:
n = int(input())
list = []
for i in range(n):
  list.append(int(input()))

cnt = 0
flag = True
while True:
  for i in range(len(list)):
    j = list[i]%2
    if j == 1:
      flag = False
      break
    list[i] = int(list[i]/2)
  if flag == False:
    break
  else:
    cnt += 1

print(cnt)

Submission status: Runtime Error

Solution code:
n = input()
list = []
for i in range(n):
  list.append(int(input()))

cnt = 0
flag = True
while True:
  for i in range(len(list)):
    j = list[i]%2
    if j == 1:
      flag = False
      break
    list[i] = int(list[i]/2)
  if flag == False:
    break
  else:
    cnt += 1

print(cnt)

Submission status: Runtime Error

Solution code:
n = input()
list = []
for i in range(n):
  list.append(int(input()))

cnt = 0
flag = True
while True:
  for i in range(len(list)):
    j = list[i]%2
    if j == 1:
      flag = False
      break
    list[i] = int(list[i]/2)

  if flag == False:
    break
  else:
    cnt += 1

print(cnt)

Submission status: Runtime Error

Solution code:
n = input()
list = []
for i in range(n):
  list.append(int(input())

cnt = 0
flag = True
while True:
  for i in range(len(list)):
    j = list[i]%2
    if j == 1:
      flag = False
      break
    list[i] = int(list[i]/2)

  if flag == False:
    break
  else:
    cnt += 1

print(cnt)

Submission status: Runtime Error

Solution code:
n = input()
list = []
for i in range(n):
  list.append(int(input())

cnt = 0
flag = True
while True:
  for i in list:
    i = i/2
    j = i%2
    if j==1:
      flag = False
      break
    else:
      continue
  if flag == False:
    break
  else:
    cnt += 1

print(cnt)

Submission status: Runtime Error

Solution code:
n = input()
a = [int(value) for value in input()]

def num_two(input_number):
  number = input_number
  count = 0
  while True:
    if number / 2 == 0:
      count += 1
      number = number / 2
    else:
      break
  return count

num_twos = [num_two(ai) for ai in a]
print(min(num_twos))

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):
  A = [i/2 for i in A]
  ans += 1

print (ans)

Submission status: Runtime Error

Solution code:
N = int(input())
A = int(input())
a = 0

for i in A:
  if A%2 == 0:
    a += 1
  else:
    brake:
      print a

Submission status: Runtime Error

Solution code:
n = int(input())
# nums = list(map(int, input().split()))
nums = [int(i) for i in input().split()]

kaisu = 0

while True:
  
"""
  for i in range(n):
    if nums[i] %2 == 0:
      nums[i] = nums[i]/2
      kaisu += 1
    else:
      break
"""
  if [i for i in nums if i % 2 == 1]:
    break
  nums = [i//2 for i in nums]
  kaisu += 1
print(kaisu)

Submission status: Runtime Error

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

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

print(cnt)

Submission status: Runtime Error

Solution code:
list_len = int(input())
input_list = map(int, input().split())
even_list = input_list
even_list_len = list_len
count = 0
 
while:
  even_list = filter(lambda num: num % 2, input_list)
  even_list_len = len(even_list)
  if list_len != even_list_len:
    break
  even_list = map(lambda num: num / 2, even_list)
  count += 1
    
print(count)

Submission status: Runtime Error

Solution code:
input_list = map(int, input().split())
even_list = input_list
even_list_len = list_len
count = 0
 
while:
  even_list = filter(lambda num: num % 2 , input_list)
  even_list_len = len(even_list)
  if list_len != even_list_len:
    break
  even_list = map(lambda num: num / 2, even_list)
  count += 1
    
print(count)

Submission status: Runtime Error

Solution code:

input_list = map(int, input().split())
even_list_len = list_len
count = 0
 
while:
  even_list = filter(lambda num: num % 2 , input_list)
  even_list_len = len(even_list)
  if list_len != even_list_len:
    break
  even_list = map(lambda num: num / 2, even_list)
  count += 1
    
print(count)

Submission status: Runtime Error

Solution code:
list_len = int(input())
input_list = map(int, input().split())
even_list_len = list_len
count = 0
 
while:
  even_list = filter(lambda num: num % 2 , input_list)
  even_list_len = len(even_list)
  if list_len != even_list_len:
    break
  count += 1
    
print(count)

Submission status: Runtime Error

Solution code:
list_len = int(input())
input_list = map(int, input().split)
even_list_len = list_len
count = 0
 
while:
  even_list = filter(lambda num: num % 2 , input_list)
  even_list_len = len(even_list)
  if list_len != even_list_len:
    break
  count += 1
    
print(count)

Submission status: Runtime Error

Solution code:
list_len = int(input())
input_list = map(int, input().split)
even_list_len = list_len
count = 0
 
while:
	even_list = filter(lambda num: num % 2 , input_list)
    even_list_len = len(even_list)
	if list_len != even_list_len:
      break
    count += 1
    
print(count)

Submission status: Runtime Error

Solution code:
list_len = int(input())
input_list = map(int, input().split)
even_list_len = list_len
count = 0
 
while:
	even_list = filter(lambda num: num & 2 , input_list)
    even_list_len = len(even_list)
	if list_len != even_list_len:
      break
    count += 1
    
print(count)

Submission status: Runtime Error

Solution code:
list_len = int(input())
input_list = map(int, input().split)
even_list_len = list_len
count = 0
 
while:
	even_list = filter(lambda num: num & 2 , input_list)
	if list_len != even_list_len:
      break
    count += 1
    
print(count)

Submission status: Runtime Error

Solution code:
list_len = int(input())
input_list = map(int, input().split)
even_list_len = list_len
count = 0

while:
	even_list = filter(lambda num: num & 2 , input_list)
	if list_len != even_list_len:
      break
     count += 1
    
print(count)

Submission status: Runtime Error

Solution code:
a = input()
b = list(int(i) for i in input().split())
flg = 0

def waru2(n):
  return n / 2

while true:
  if flg == 0:
    for bb in b:
      if bb % 2 == 0:
        pass
      else:
        flg = 1
        res = aa
        break
    b = map(waru2, b)
  else:
    break
      
print(res)

Submission status: Runtime Error

Solution code:
a = input()
b = list(int(i) for i in input().split())
flg = 0

def waru2(n):
  return n / 2

for aa in range(a):
  if flg == 0:
    for bb in b:
      if bb % 2 == 0:
        pass
      else:
        flg = 1
        res = aa
        break
    b = map(waru2, b)
  else:
    break
      
print(res)

Submission status: Runtime Error

Solution code:
def main():
    _ = int(input())
    # nums = [int(input()) for _ in range(N)]
    nums = map(int, input().split())
    counter = 0
    loop = True
    while loop:
        for i, n in enumerate(nums):
            if n % 2 == 0:
                nums[i] = n / 2
            else:
                loop = False
                break
        if loop:
            counter += 1
    print(counter)


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
def main():
    _ = int(input())
    A = str(input().strip('()'))
    nums = [int(a) for a in A.split(',')]
    counter = 0
    loop = True
    while loop:
        for i, n in enumerate(nums):
            if n % 2 == 0:
                nums[i] = n / 2
            else:
                loop = False
                break
        if loop:
            counter += 1
    print(counter)


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
def main():
    N = int(input())
    nums = [int(input()) for _ in range(N)]
    counter = 0
    loop = True
    while loop:
        for i, n in enumerate(nums):
            if n % 2 == 0:
                nums[i] = n / 2
            else:
                loop = False
                break
        if loop:
            counter += 1
    print(counter)


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
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))

# %% 	Coins
a, b, c, x = map(int, [input() for i in range(4)])
ans = 0
for i in range(a+1):
    for j in range(b+1):
        for k in range(c+1):
            if i * 500 + j * 100 + k * 50 == x:
                ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
N = input()
A = list(map(int,input().split()))
ans = 0
for i in A:
  tmp = 0 
  while i % 2 == 0:
    i = i / 2
    tmp += 1
  ans = tmp if ans = 0 else min(ans,tmp)
print(ans)

Submission status: Runtime Error

Solution code:
N = input()
A = map(int,input().split())
ans = 0
for i in A:
  while i % 2 = 0:
    tmp = 0 
    i = i / 2
    tmp += 1
  if tmp > ans:
    ans = tmp
print(ans)

Submission status: Runtime Error

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

ans=10**9

for i in A:
  p=0
  while i%2 ==0:
    i=/2
    p+=1
  if p<ans:
    ans=p
    
print(ans)

Submission status: Runtime Error

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

ans=10**9

for i in A:
  p=0
  while i % 2 ==0:
    i=/2
    p+=1
  if p<ans:
    ans=p
    
print(ans)

Submission status: Runtime Error

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

ret = 0
while(True):
  for(i=0; i<N; i++):
    if(A[i] % 2 != 0):
      break;
    else:
      A[i] /= 2
    ret += 1
print(ret)

Submission status: Runtime Error

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

i = 0
counter = 0

while li[i] % 2 == 0:
  counter += 1
  i += 1
else:
  print(counter / N)

Submission status: Runtime Error

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

tmp = min(A)
ans = 0
while all(a % 2 == 0 for a in A):
    A = all(a/2 for a in A)
    ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
for i in range(n):
    even_count = 0
    a = int(input())
    while a % 2 == 0:
        even_count += even_count + 1
        a / 2
print(even_count)

Submission status: Runtime Error

Solution code:
n = int(input())
for i in range(n):
    even_count = 0
    a = int(input())
    if a % 2 == 0:
        even_count += even_count + 1
print(even_count)

Submission status: Runtime Error

Solution code:
n = int(input())
a = map(int, input().split())
counter = 0
while(True):
  for i in range(n):
    if a[i] % 2 != 0:
      break
    else:
      a[i] = a[i] // 2
  counter += 1
print(counter)

Submission status: Runtime Error

Solution code:
N = int(input())
nums = list(map(int, input().split()))
ans = 0
while True:
  for idx, num in enumerate(nums):
    if num%2 != 0:
      break
    else:
      nums[idx] = num//2
  ans += 1
  else:
    continue
  break
print(ans)

Submission status: Runtime Error

Solution code:
n=int(input())
a=input().split()
a2=[int(z) for z in a]
count=0
while True:
  sub=0
  for i in range(n):
    if a2[i]%2!=0:
      break
    else:
      sub+=1
  if sub==n:
    ount+=1
    a2=[int(a2[d]/2) for d in range(n)]
  else:
    break
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
input_list =[int(x) for x in input().split()]

count = 0
while (True):
	if not all([item % 2 == 0 for item in input_list]):
    	break
    else:
      	count += 1
        input_list = [int(item/2) for item in input_list]
print (count)

Submission status: Runtime Error

Solution code:
input_list =[int(x) for x in input().split()]

count = 0
while (True):
	if all([item % 2 == 0 for item in input_list]):
    	break
    else:
      	count += 1
        input_list = [int(item/2) for item in input_list]
print (count)

Submission status: Runtime Error

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

def hmtd(n):
  ans = 0
  while n % 2 == 0:
    n /= 2
    ans += 1
    return ans

ans = min(map(hmtd, A))
print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
A = [int(l) for l in input().split()]

count = 0
while True:
    for i in range(N):
        if A[i]/2** k % 2 !=0:
            break
    else:
        count += 1    
        continue
    break

print(count)

Submission status: Runtime Error

Solution code:
def how_many_times_divisible(n):
	ans = 0
	while n % 2 == 0:
		n /= 2
		ans += 1
	return ans
 
n = int(raw_input())
a = map(int, raw_input().split())
ans = min(map(how_many_times_divisible(a)))
 
print ans

Submission status: Runtime Error

Solution code:
def how_many_times_divisible(n):
	ans = 0
	while n % 2 == 0:
		n /= 2
		ans += 1
	return ans
 
n = int(raw_input())
a = map(int, raw_input().split())
ans = min(map(how_many_times_divisible(), a))
 
print ans

Submission status: Runtime Error

Solution code:
n = input()
a = list(map(int, input()))
count = 0
while 1:
  b =[int(i/2) for i in a] 
  if a == b:
    count+=1
    a = b
  else:
    print(count)
    break

Submission status: Runtime Error

Solution code:
n = input()
a = list(map(int, input()))
count = 0
while 1:
  b =[int(i/2) for i in a] 
  if a == b:
    count+=1
    a = b
  else:
    print(count)
    break
return 0

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>

using namespace std;

using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using vvi = vector<vector<int>>;
using vvl = vector<vector<ll>>;

ll f(int x) {
  int r = 0;
  while (x && (x & 1) == 0) {
    r++;
    x >>= 1;
  }
  return r;
}

int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  ll ans = 101010101;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    ans = min(ans, f(x));
  }
  cout << ans << endl;
  return 0;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(input().split())
ans = []
for i in A:
  cnt = 0
  while i%2 == 0:
    cnt += 1
    i /= 2
  ans.append(cnt)
print(min(ans))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
N=int(input())
s = list( map(int , input().split()) )
ans = s[0]
count = 0
for i in range(1,N):
 ans = math.gcd(ans,s[i])
while i < pow(10,9):
 if ans%2 == 0:
  count +=1
  ans = ans/2
 else:
  break
print(count)

Submission status: Runtime Error

Solution code:
import math
N=int(input())
s = list( map(int , input().split()) )
ans = s[0]
count = 0
for i in range(1,N-1):
 ans = math.gcd(ans,s[i])
while i < pow(10,9):
 if ans%2 == 0:
  count +=1
  ans = ans/2
 else:
  break
print(count)

Submission status: Runtime Error

Solution code:
import math
N=input()
s = list( map(int , input().split()) )
ans = s[0]
count = 0
for i in range(1,N-1):
 ans = math.gcd(ans,s[i])
while i < pow(10,9):
 if ans%2 == 0:
  count +=1
  ans = ans/2
 else:
  break
print(count)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = int(input().split(""))
list(b)
count = []
for i in range(a):
  count[i] = 0
  while b[i] % 2 == 1:
    b[i] = b[i] / 2
    count[i] += 1
print(min(count))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = int(input().split(""))
list(b)
count = []
for i in range(a):
  count[i] = 0
  c = count[i]
  d = b[i]
  while d % 2 == 0:
    d = d / 2
    c += 1
    count[i] = c
print(min(count))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = int(input().split(""))
list(b)
count = []
for i in range(a):
  count[i] = 0
  while b[i] % 2 == 0:
    b[i] = b[i] / 2
    count[i] += 1
c = min(count)    
print(c)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = int(input().split(""))
list(b)
count = []
for i in range(a):
  count[i] = 0
  while b[i] % 2 == 0:
    b[i] = b[i] / 2
    count[i] += 1
print(min(count))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = list(int(input().split()))
count = list()
for i in range(a):
  count[i] = 0
  while b[i] % 2 == 0:
    b[i] = b[i] / 2
    count[i] += 1
print(min(count))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = list(int(input().split()))
count = list()
for i in range(a):
  count[i] = 0
  while b[i] % 2 == 0:
    b[i-1] = b[i] / 2
    count[i] += 1
print(min(count))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = list(int(input().split("")))
count = list()
for i in range(a):
  count[i-1] = 0
  while b[i-1] % 2 == 0:
    b[i-1] = b[i-1] / 2
    count[i-1] += 1
print(min(count))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = list(int(input().split()))
count = list()
for i in range(a):
  count[i-1] = 0
  while b[i-1] % 2 == 0:
    b[i-1] = b[i-1] / 2
    count[i-1] += 1
print(min(count))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = list(int(input()))
list(count)
for i in range(a):
  count[i-1] = 0
  while b[i-1] % 2 == 0:
    b[i-1] = b[i-1] / 2
    count[i-1] += 1
print(min(count))

Submission status: Runtime Error

Solution code:
n=input()
list=[]
for i in range(int(n)):
    a = input()
    list.append(int(a))
count=0
flag=0

while True:
    for i in range(int(n)):
        if(list[i]%2 != 0):
            flag += 1
    if(flag==1):
        break
        
    for i in range(int(n)):
        list[i] = list[i]/2
    count += 1
    
print(count)

Submission status: Runtime Error

Solution code:
a =[]

for tmp in s.split():
    a.append(int(tmp))

# [8,12,40]
total = 0

judge = True

while judge:
    for i in range(a[0]):
        if a[i+1] % 2 == 0:
            a[i+1] = int(a[i+1] / 2)
            
        else:
            judge = False
            total -= 1
        
    total += 1

print(total)

Submission status: Runtime Error

Solution code:
a =[]

for tmp in s.split():
    a.append(int(tmp))

# [8,12,40]
total = 0

judge = True

while judge:
    for i in range(a[0]):
        if a[i+1] % 2 == 0:
            a[i+1] = int(a[i+1] / 2)
            
        else:
            judge = False
        
    total += 1

print(total)

Submission status: Runtime Error

Solution code:
n=int(input())
a=map(int,input().split())
loop=True
cnt=0
while loop:
    for i in range(n):
        if a[i]%2==0:
            a[i]=a[i]/2
        else:
          loop=False
          break
    cnt=cnt+1
print(cnt)

Submission status: Runtime Error

Solution code:
n=int(input())
a=map(int,input().split())
loop=True
cnt=0
while True:
    for i in range(n):
        if a[i]%2==0:
            a[i]=a[i]/2
        else:
          loop=False
          break
    cnt=cnt+1
print(cnt)

Submission status: Runtime Error

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

cnt=0

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

print(cnt)

Submission status: Runtime Error

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

cnt=0

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

print(cnt)

Submission status: Runtime Error

Solution code:
n = int(input())
a_list = list(map(int, input().split()))
cnt = 0
even = True
 
while(even):
	for i in range(n):
  		if a_list[i] % 2 != 0
        	even = False
            break
        else:
          a_list[i] /= 2
    cnt += 1
          
print(cnt)

Submission status: Runtime Error

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

while(even)
	for i in range(n):
  		if a_list[i] % 2 != 0
        	even = False
            break
        else:
          a_list[i] /= 2
    cnt += 1
          
print(cnt)

Submission status: Runtime Error

Solution code:
nums = int(input().split())
count = 0
while all(num%2==0 for num in nums):
  for i in range(len(nums)):
    nums[i] = nums[i]/2
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
n = int(input())
l = list(map(int, input().split()))
v = np.array(l)
count = 0
while np.sum(v % 2) == 0:
    count += 1
    v = v / 2
print(count)

Submission status: Runtime Error

Solution code:
l = list(map(int, input().split()))
v = np.array(l)
count = 0
while np.sum(v % 2) == 0:
    count += 1
    v = v / 2
print(count)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

count = 0
for i in all(i%2 == 0 for i in N ):
    N = [i/2 for i in N]
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
N = input()
A = list(map(int, input().split(' ')))
bit = 0
for a in A:
    bit |= a
print(len(bit) - len(bit.rstrip('0')))

Submission status: Runtime Error

Solution code:
N = input()
A = list(map(int, input.split(' ')))
bit = 0
for a in A:
    bit |= a
print(len(bit) - len(bit.rstrip('0')))

Submission status: Runtime Error

Solution code:
N = input()
A = map(int, input.split(' '))    
bit = 0
for a in A:
    bit |= a
print(len(bit) - len(bit.rstrip('0')))

Submission status: Runtime Error

Solution code:
N = input()
a = input().split()
a = list(map(int,a))
n = 0
p = N
while p == N:
  p = 0
  for i in range(N):
    if a[i]%2 == 0:
      p = p + 1
  if p == N:
    a = list(map(lambda x: x/2,a))
    n = n + 1
print(n)

Submission status: Runtime Error

Solution code:
import math
n = input()
a = list(map(int, input().split()))
b  = 0
cnt = 0
while "loop":
    for num in a
        if num % 2 == 1:
            b= 1
    if  b == 0:
        for num in a
        num /=2
        cnt+=1
print(cnt)

Submission status: Runtime Error

Solution code:
import math
n = input()
a = list(map(int, input().split()))
i = 0
cnt = 0
while "A":
    if bin(a[i][0]) == 0:
        a[i] /= 2
        cnt += 1
    else :
        break
print(cnt)

Submission status: Runtime Error

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

while(1):
    for num  in a:
		if num  % 2 == 1:
		    bol = 1

    if bol == 0:
		a = [ i	/2 for i in a]
		count += 1
    else :
		break

print(count)

Submission status: Runtime Error

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

while(1):
    for num  in a:
	if num  % 2 == 1:
	    bol = 1

    if bol == 0:
	a = [ i	/2 for i in a]
	count += 1
    else :
	break

print(count)

Submission status: Runtime Error

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

ans = 0

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

print(ans)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
N = int(input())
counter = 0
arr = [int(i) for i in input().split(" ")]
flag = True
while 0 < len(arr):
    counter = counter + 1
    for i in arr:
        arr[i] = arr[i] << 1
        if arr[i] == 1:
            pass
        else:
            ret.append(arr[i])
    arr = ret

print(counter)

Submission status: Runtime Error

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

res = 0

for num in range(num_list):
  count = 0
  
  while(num % 2  == 0):
    num /= 2
    count += 1
  
  if count > res:
    res = count
    
print(res)

Submission status: Runtime Error

Solution code:
n = int(input())
a = [int(i) for i in input().split()]
min = 0
while(a[0] % 2 == 0):
  a[0] = a[0] // 2
  min += 1
for i in range(1, n):
  a = 2**min
  if(a[i] % a != 0):
    min = 0
    while(a[i] % 2 == 0):
      a[i] = a[i] // 2
  	  min += 1
print(min)

Submission status: Runtime Error

Solution code:
import math

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

#math.floor

print(min(map(math.floor(math.log(x[2]))), a)))

Submission status: Runtime Error

Solution code:
N = int(input())
S = [int(i )  for i in input().split()]

odd = False
ans = 0
while:
    for i in range(N):
        for S[i] % 2 != 0:
            odd = True
        else:
            S[i] /= 2 
        if odd:
            break
        ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
S = [int(i )  for i in input().split()]

bool odd = False
ans = 0
while:
    for i in range(N):
        for S[i] % 2 != 0:
            odd = True
        else:
            S[i] /= 2 
        if odd:
            break
        ans += 1
print(ans)

Submission status: Runtime Error

Solution code:
import copy
n=int(input())
a=[]
for i in range(n):
  item = int(input())
  a.append(item)
count = 0
t = True
while t:
  b=[]
  for j in a:
    if j%2==0:
      b.append(j/2)
    elif j<2:
      t=False
    else:
      t=False
  if t== False:
    break
  count = coutn +1
  a=copy.deepcopy(b)
print(count)