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: Wrong Answer

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


all=[]

for i in range(n):
  if a[i]%2 ==0:
    count = 0
    while True:
      if (a[i]%2)==0:
        count+=1
        
        a[i]=int((a[i]//2)+1)
        
      else:
        break
    all.append(count)
    
print(int((max(all)-1)))

Submission status: Wrong Answer

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


all=[]

for i in range(n):
  if a[i]%2 ==0:
    count = 0
    while True:
      if (a[i]%2)==0:
        count+=1
        
        a[i]=a[i]/2
        
      else:
        break
    all.append(count)
    
print(int((max(all)-1)))

Submission status: Wrong Answer

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


all=[]

for i in range(n):
  if a[i]%2 ==0:
    count = 0
    while True:
      if (a[i]%2)==0:
        count+=1
        print(a[i])
        a[i]=a[i]/2
        
      else:
        break
    all.append(count)
    
print(int((max(all)-1)))

Submission status: Wrong Answer

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


all=[]

for i in range(n):
  if a[i]%2 ==0:
    count = 0
    while True:
      if (a[i]%2)==0:
        count+=1
        print(a[i])
        a[i]=a[i]/2
        
      else:
        break
    all.append(count)
    
print(max(all)-1)

Submission status: Wrong Answer

Solution code:
N = int(input())
input_value =input()
l = input_value.split()
c = 0
odd = False
while True:
    for i in range(N):
        if int(l[i]) % 2 != 0:
            odd = True
            break
        else:
            l[i] = int(l[i]) / 2
    if odd:
        break
    else:
        print(l)
        c += 1
print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

i=0
while sum(a)%2==0:
    a=list(map(lambda x: x/2, a))
    i+=1

print(i)

Submission status: Wrong Answer

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

def even_check(A):
    for i in range(N):
        if A[i]%2 != 0:
            return False
            break
        return True

total_cnt = 0
while even_check(A):
    for i in range(N):
        A[i] = A[i]/2
    total_cnt += 1

print(total_cnt)

Submission status: Wrong Answer

Solution code:
def count_factors(num, fact):
  res = 0
  while num % fact == 0:
    res += 1
    num //= fact
  return res

nums = [int(tok) for tok in input().split()]
print(min(map((lambda n : count_factors(n, 2)), nums)))

Submission status: Wrong Answer

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

ans=0
for a in A:
    if a%2:
        break
    ans+=1
print(str(ans))

Submission status: Wrong Answer

Solution code:
num = int(input())
a = [int(e) for e in input().split()]
cnt = 0   
while 1:
  cnt = 0
  for i in range(num):
    if a[i]%2 != 0:
      cnt += 1
  if cnt != 0:
    break
  for i in range(num):
    a[i] = int(a[i]/2)
  
print(a)

Submission status: Wrong Answer

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

def can(array):
  C = len(list(
    filter(
      lambda i: i % 2 == 1, array
    )
  ))
  return C == 0

while can(A):
  A = [n / 2 for n in A]
  count += 1

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int, input().split()))
flag = True
ans = 0
while(1):
    for i in range(N):
        if A[i] % 2 != 0:
            flag = False
            break
    if flag:
        A = list(map(lambda x:x/2, A))
    else:
        break

print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int, input().split()))
count=0
#print(sum(A)%2)
while sum(A)%2 == 0:
  A = list(map(lambda x: x/2, A))
  #print(sum(A)%2, A)
  count+=1
print(int(count))

Submission status: Wrong Answer

Solution code:
s=input()
a = list(map(int,input().split()))
x=len(a)
f=0
for k in range(1000000000):
    f=f+1
    for i in range(x):
        a[i]=int(a[i])
        a[i]=0.5*a[i]
        if a[i]%2 == 1:
            break
    else:
        continue
    break
print(f)

Submission status: Wrong Answer

Solution code:
n=input()
div=30
count=0
for i in input().split():
  while int(i)%2==0:
    i=int(i)/2
    count+=1
  if count<div:
    div=count
print(div)

Submission status: Wrong Answer

Solution code:
import numpy as np
n=int(input())
alist=np.array(list(map(int,input().split())))
print(alist)
counter=0
flag=0
while flag==0:
  for a in alist:
    if a%2==1:
      flag=1
      break
  if flag==0:
    alist=alist/2
    counter=counter+1
print(counter)

Submission status: Wrong Answer

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

mi = 10 ** 5

for i in range(N):
    temp = A[i]
    c = 0
    while temp % 2 == 0:
        c += 1
        temp = temp // 2
    if c < mi:
        mi = c
print(max(mi - 1, 0))

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int, input().split()))
c = 0
mi = 10 ** 5

for i in range(N):
    temp = A[i]
    if temp % 2 == 1:
        print(0)
        exit()
    while temp % 2 == 0:
        c += 1
        temp = temp // 2
    if c < mi:
        mi = c
print(max(mi - 1, 0))

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int, input().split()))
c = 0
mi = 10 ** 5

for i in range(N):
    temp = A[i]
    while temp % 2 == 0:
        c += 1
        temp = temp // 2
    if c < mi:
        mi = c
print(max(mi - 1, 0))

Submission status: Wrong Answer

Solution code:
n=int(input())
a=list(map(int,input().split()))
ans=10**9
for i in range(n):
  cnt=0
  x=a[i]
  while x%2!=0:
    cnt+=1
    x/=2
  ans=min(ans, cnt)
print(ans)

Submission status: Wrong Answer

Solution code:
n=int(input())
a=list(map(int,input().split()))
ans=10**9
for i in range(n):
  cnt=0
  x=i
  while x%2!=0:
    cnt+=1
    x/=2
  ans=min(ans, cnt)
print(ans)

Submission status: Wrong Answer

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

for a in A:
    print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
li = list(map(int, input().split()))
a = 0
br = False
while True:
    for i in li:
        if i % 2 != 0:
            br = True
            break
    if br:
        break
    a += 1
    li = list(map(lambda x: x / 2, li))
print(a)

Submission status: Wrong Answer

Solution code:
division_count = 0
num_count = int(input())
numbers = input().rstrip().lstrip().split()
num_list = []

for i in range(len(numbers)):
  num_list.append(int(numbers[i]))

while num_list[0] % 2 == 0 and num_list[1] % 2 == 0 and num_list[2] % 2 == 0:
  if num_list[0] % 2 == 0 and num_list[1] % 2 == 0 and num_list[2] % 2 == 0:
    division_count += 1
    num_list[0] /= 2
    num_list[1] /= 2
    num_list[2] /= 2

print(division_count)

Submission status: Wrong Answer

Solution code:
division_count = 0
num_count = int(input())
numbers = input().rstrip().lstrip().split()
num_list = []
if num_count == len(numbers):
  for i in range(len(numbers)):
    num_list.append(int(numbers[i]))

while num_list[0] % 2 == 0 and num_list[1] % 2 == 0 and num_list[2] % 2 == 0:
  if num_list[0] % 2 == 0 and num_list[1] % 2 == 0 and num_list[2] % 2 == 0:
    division_count += 1
    num_list[0] /= 2
    num_list[1] /= 2
    num_list[2] /= 2

print(division_count)

Submission status: Wrong Answer

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

print(tmp)

Submission status: Wrong Answer

Solution code:
N = int(input())
a_list = list(map(int, input().split()))
print(a_list)
b_list = [int(a % 2) for a in a_list]
zero_list = [0 for a in a_list]
i = 0
while zero_list == b_list:
    a_list = [int(a / 2) for a in a_list]
    b_list = [int(a % 2) for a in a_list]
    i += 1
print(i)

Submission status: Wrong Answer

Solution code:
N = int(input())
a_list = map(int, input().split())
b_list = [int(a % 2) for a in a_list]
zero_list = [0 for a in a_list]
i = 0
while zero_list == b_list:
    a_list = [int(a / 2) for a in a_list]
    b_list = [int(a % 2) for a in a_list]
    i += 1
print(i)

Submission status: Wrong Answer

Solution code:
N = int(input())
a_list = map(int, input().split())
b_list = [int(a % 2) for a in a_list]
zero_list = [0 for a in a_list]
i = 0
if zero_list == b_list:
    print(i)
else:
    a_list = [int(a / 2) for a in a_list]
    b_list = [int(a % 2) for a in a_list]
    i += 1

Submission status: Wrong Answer

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

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

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

print(count)

Submission status: Wrong Answer

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

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

print(cnt)

Submission status: Wrong Answer

Solution code:
loop = int(input())
kokuban=[int(x) for x in input().split()]
print(kokuban)

flag=False
result =0

while(flag==False) :
    for index,obj in enumerate(kokuban) :
        print(int(obj))
        if int(obj)%2 == 0:
            kokuban[index]= int(obj)//2
            # print(obj)
        else:
            flag=True
    if flag==False :
        # print("flag_false")
        result +=1

print("result is ",result)

Submission status: Wrong Answer

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

ans = 0

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

Submission status: Wrong Answer

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

while True:
	for i in a:
		if i%2 != 0:
			flg = 1
	if flg == 0:
		a = list(map(lambda x: int(x/2), a))
		count += 1
	else:
		break
         
print(count)

Submission status: Wrong Answer

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

res = 0

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

Submission status: Wrong Answer

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

for a in A:
  if a%2 != 0:
    print(0)

Submission status: Wrong Answer

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

kaisu = 0

aiueo = True

while aiueo:
  for i in range(n):
    if nums[i] %2 == 0:
      kaisu += 1
    else:
      aiueo = False

print(kaisu)

Submission status: Wrong Answer

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

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

print(res)

Submission status: Wrong Answer

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

ctr = 0
def numEvener(N,numList):
  for i in range(0,N-1):
    if numList[i] % 2 == 0:
      numList[i] = int(numList[i] / 2)
    else:
      numList[i] = 0
  return numList
 
while not 0 in numList:
  ctr += 1
  numList = numEvener(N,numList)

print(ctr)

Submission status: Wrong Answer

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

ctr = 0
def numEvener(N,numList):
  for i in range(0,N-1):
    if numList[i] // 2 == 0:
      numList[i] = int(numList[i] / 2)
    else:
      numList[i] = 0
  return numList
 
while not 0 in numList:
  ctr += 0
  numList = numEvener(N,numList)

print(ctr)

Submission status: Wrong Answer

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

def numEvener(N,numList):
  for i in range(0,N-1):
    if numList[i] // 2 == 0:
      numList[i] = int(numList[i] / 2)
    else:
      numList[i] = 0
  return numList

while not 0 in numList:
  numList = numEvener(N,numList)

Submission status: Wrong Answer

Solution code:
input_list_len = int(input("要素数: "))
input_list = map(int, input("要素をかけ: ").split())
even_list = input_list
even_list_len = input_list_len
count = 0

while input_list_len == even_list_len:
    even_list = list(filter(lambda num: num % 2 == 0, even_list))
    even_list_len = len(even_list)
    if input_list_len != even_list_len:
        break
    even_list = map(lambda num: num / 2, even_list)
    count += 1

print(count)

Submission status: Wrong Answer

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

b = input().split(" ")
i=1
while 1:
  flag=0
  for item in b:
    if int(item)%2**i!=0:
      print(item)
      flag=1
  if flag==1:
    break
  i=i+1

print(i-1)

Submission status: Wrong Answer

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

b = input().split(" ")
i=1
while 1:
  flag=0
  for item in b:
    if int(item)%2**i!=0:
      flag=1
  if flag==1:
    break
  i=i+1

print(i)

Submission status: Wrong Answer

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

ans = float('inf')
for i in range(N):
    cnt = 0

    while A[i] % 2 == 0:
        A[i] /= 2
        cnt += 1    
    if ans > cnt:
        ans = cnt

print(cnt)

Submission status: Wrong Answer

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

ans = float('inf')
for i in range(N):
    cnt = 0

    while A[i] % 2 == 0:
        A[i] = A[i] // 2
        cnt += 1    
    if ans > cnt:
        ans = cnt

print(cnt)

Submission status: Wrong Answer

Solution code:
def solve():
    a = read()
    result = think(a)
    write(result)


def read():
    n = read_int(1)[0]
    return read_int(n)


def read_int(n):
    return list(map(int, read_line().split()[:n]))


def read_line(n=0):
    if n == 0:
        return input().rstrip()
    else:
        return input().rstrip()[:n]


def think(a):
    buf = list(a)
    count = 0
    while True:
        if all(map(lambda x: x % 2 == 0, buf)):
            print(buf)
            count += 1
            buf = list(map(lambda x: x // 2, buf))
        else:
            break
    return count
        

def write(result):
    print(result)


if __name__ == '__main__':
    solve()

Submission status: Wrong Answer

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: Wrong Answer

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
  if tmp > ans:
    ans = tmp
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = input()
numbers = list(map(int, input().split()))
cnt = 0
while sum([True if n%2==0 else False for n in numbers])>0:
  numbers = [n/2 for n in numbers]
  cnt += 1
print(cnt)

Submission status: Wrong Answer

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

ret = 0
flag = True
while(flag):
  for i in range(3):
    if(A[i] % 2 != 0):
      flag = False
    else:
      A[i] /= 2
  if(flag):
    ret += 1  
print(ret)

Submission status: Wrong Answer

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

i = 0
counter = 0

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

Submission status: Wrong Answer

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

cnt = 0

while True:
    for i in range(len(a)):
        if a[i] % 2 != 0:
            break
        elif i == len(a)-1:
            for j in range(len(a)):
                a[j] = a[j]/2
            cnt += 1
    else:
        continue
    break
    
print(cnt)

Submission status: Wrong Answer

Solution code:
iter_num = input()
variables = input()

raw_variables = variables.split(' ')
variables = list()

for raw_variable in raw_variables:
    variables.append(int(raw_variable))


def calc(variable):
    process_count = 0
    while (variable % 2 == 0):
        process_count += 1
        variable = variable / 2
    return process_count


min_count = 0

for variable in variables:
    process_count = calc(variable)
    if min_count is None:
        min_count = process_count
    if process_count < min_count:
        min_count = process_count

print(min_count)

Submission status: Wrong Answer

Solution code:
iter_num = input()
variables = input()

raw_variables = variables.split(' ')
variables = list()

for raw_variable in raw_variables:
    variables.append(int(raw_variable))


def calc(variable):
    process_count = 0
    while (variable % 2 == 0):
        process_count += 1
        variable = variable / 2
    return process_count


max_count = 0

for variable in variables:
    process_count = calc(variable)
    if process_count > max_count:
        max_count = process_count

print(max_count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def divide_count(n):
    cnt = 0
    while n % 2 == 0:
        n /= 2
        cnt += 1
    return cnt

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

Submission status: Wrong Answer

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

count = 0

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

Submission status: Wrong Answer

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

while(True):
    t = True
    for i in a:
        if i%2:
            t = False
    if t:
            ans += 1
            a = [int(x/2) for x in a]
    else:
        break
print(str(ans))

Submission status: Wrong Answer

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

while(True):
    t = True
    for i in a:
        if i%2:
            t = False
    if t == True:
            ans += 1
            a = list(map(lambda j: j/2, a))
    else:
        break
print(str(ans))

Submission status: Wrong Answer

Solution code:
N=int(input())
L=list(map(int,input().split()))
counter=0
t=0
for i in range(N):
  if L[i]%2==0:
    t+=1
if t==N:
  for i in range(N):
    L[i]=int(L[i]/2)
  counter+=1
print(counter)

Submission status: Wrong Answer

Solution code:
N=int(input())
L=list(map(int,input().split()))
counter=0
t=0

for i in range(N):
  if L[i] % 2 == 0:
    t += 1
  if t==N:
    for i in range(N):
      L[i]=int(L[i]/2)
    counter+=1
print(counter)

Submission status: Wrong Answer

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

min_a = min(a_list)
count = 0
while min_a % 2 == 0:
    min_a /= 2
    count += 1
while True:
    for i in range(n):
        if a_list[i] / 2 ** count % 2 !=0:
            break
    else:   
        continue
    break

print(count)

Submission status: Wrong Answer

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

min_a = min(a_list)
count = 0
while min_a % 2 == 0:
    min_a /= 2
    count += 1
#print(count)
while True:
    for i in range(n):
        if a_list[i] / 2 ** count % 2 !=0:
            break
    else:
        count += 1    
        continue
    break

print(count)

Submission status: Wrong Answer

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


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

print(count)

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

Solution code:
N = int(input())
A = list(map(int,input().split()))
A_sum = sum(A)
count= 0
while True:
	if int(A_sum) % 2 == 0:
		# print('A_sum:',A_sum)
		A_sum = int(A_sum/2)
		count += 1
	else:
		 break

print(count)

Submission status: Wrong Answer

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

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())
L=list(map(int,input().split()))
counter=0
t=0
for p in range (N):
  t=0
  for i in range(N):
    if L[i]%2==0:
      t+=1
  if t==N:
    for i in range(N):
      L[i]=int(L[i]/2)
    counter+=1
print(counter)

Submission status: Wrong Answer

Solution code:
N = int(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: Wrong Answer

Solution code:
answer = []
num = int(input())
line = list(map(int, input().split()))
for n in range(num):
    kazu = 0
    while line[n] % 2 == 0:
        line[n] = line[n] // 2
        if line[n] % 2 == 0:
            kazu += 1
        else:
            answer.append(kazu)
print(min(answer))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
answer = 0
bomb = 0
num = int(input())
hako = list(map(int, input().split()))
while bomb < 1:
    for n in range(num):
       # print(n)
        if hako[n] % 2 == 0:
            hako[n] = hako[n] // 2
            if n == num - 1:
                answer += 1
        else:
            bomb += 1
       # print(hako)
#print()
print(answer)
#print(hako)

Submission status: Wrong Answer

Solution code:
answer = 0
num = int(input())
hako = list(map(int, input().split()))
for h in hako:
    if h % 2 == 0:
        answer += 1
print(answer)

Submission status: Wrong Answer

Solution code:
answer = 0
num = int(input())
hako = list(map(int, input().split()))
for n in range(num):
    if hako[n] % 2 == 0:
        answer += 1
print(answer)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
list = input().split()
list = [int(i) for i in list]
count_list = []
for i in list:
  count = 0
  while i % 2 ==0:
    count +=1
    i = i / 2
    count_list.append(count)
print(max(count_list))

Submission status: Wrong Answer

Solution code:
N = int(input()) 
nums = list(map(int, input().split()))
maxval = 0
for i in nums:
  cnt = 0
  while i % 2 == 0:
    cnt+=1
    i /= 2
  if maxval < cnt: maxval = cnt  
print(maxval)

Submission status: Wrong Answer

Solution code:
n=int(input())
a=list(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: Wrong Answer

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

tmp = input()
tmp = input().split()
num = len(tmp)
min = int(tmp[0])
print (min)
for j in tmp:
	d = int(j)
	n = 0
	while(d % 2 == 0):
		n=n+1
		d=d/2
	if(min>n):
		min=n
	print(n)
print(min)

Submission status: Wrong Answer

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

tmp = input().split()
num = len(tmp)
min = int(tmp[0])
for j in tmp:
	d = int(j)
	n = 0
	while(d % 2 == 0):
		n=n+1
		d=d/2
	if(min>n):
		min=n
print(min)

Submission status: Wrong Answer

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

tmp = input().split()
num = len(tmp)
max = 0
for j in tmp:
	d = int(j)
	n = 0
	while(d % 2 == 0):
		n=n+1
		d=d/2
	if(max<n):
		max=n
print(max)

Submission status: Wrong Answer

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

tmp = input().split()
num = len(tmp)
max = 0
for j in tmp:
	d = int(j)
	n = 0
	while(d % 2 == 0):
		n=n+1
		d=d/2 
#	print(j)
#	print(n)
	if(max<n):
		max=n
print(n)

Submission status: Wrong Answer

Solution code:
n = int(input())
b = list(map(int, input().split()))
if b.count(0) != 0:
    print(0)
    exit()
a = sum(b)

ans = 0
cnt = True
while cnt:
    if a % 2 == 0:
        ans+=1
        a //= 2
    else:
        cnt = False
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())
a = sum(list(map(int, input().split())))
ans = 0
cnt = True
while cnt:
    if a % 2 == 0:
        ans+=1
        a //= 2
    else:
        cnt = False
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = input()
num_list = list(map(int, input().split()))
mod = list(map(lambda x: x % 2, num_list))
count = 0
while sum(mod) ==0 :
  num_list = [x / 2 for x in num_list]
  mod = list(map(lambda x: x % 2, num_list))
  print(mod)
  count +=1
print(count)

Submission status: Wrong Answer

Solution code:
N = input()
num_list = list(map(int, input().split()))
mod = list(map(lambda x: x % 2, num_list))
count = 0
while sum(mod) ==0 :
  mod = list(map(lambda x: x % 2, num_list))
  num_list = [x / 2 for x in num_list]
  print(mod)
  count +=1
print(count)

Submission status: Wrong Answer

Solution code:
a = int(input())
num_list = list(map(int,input().split()))
max_count = 0
for i in num_list:
    count = 0
    while True:
        if i%2 == 0:
            count += 1
            i = i/2
        else:
            break
        if count > max_count:
            max_count = count
print(max_count)

Submission status: Wrong Answer

Solution code:
ans = 10**9
N = input()
A = list(map(int, input().split()))
for i in A :
  p = 0
  if i % 2 != 0 :
    print(0)
    break
  else :
    while i % 2 == 0 :
      i /= 2
      p += 1
    if ans > p :
      ans = p
print(ans)

Submission status: Wrong Answer

Solution code:
ans = 10**9
N = input()
A = list(map(int, input().split()))
for i in A :
  p = 0
  if i % 2 != 0 :
    print(0)
    break
  else :
    while i % 2 == 0 :
      i //= 2
      p += 1
    if ans > p :
      ans = p
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

min=10

for i in range(0,n):
    u=min
    ren=h[i]
    while 1:
        if ren%(2**u)!=0:
            u=u-1
            min=u
        else:
            break
    
print(min)

Submission status: Wrong Answer

Solution code:
import math
n = input()
a = list(map(int, input().split()))
ans = float("inf")
b  = 0
b  = min(a)
cnt = 0
while "loop":
  if b % 2 == 0:
      break
  else :
      b /=2
      cnt+=1
print(cnt)

Submission status: Wrong Answer

Solution code:
N =list(map(int,input().split()))
i =0
cnt = 0
while "loop":
    if N[i] % 2 !=  0 :
        break
    else:
        N[i]= N[i] / 2
        i+=1
        cnt+=1
        if i==len(N) :
            i=0
print(cnt)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
N = int(input())
counter = 0
arr = [int(i) for i in input().split(" ")]
flag = True
while flag:
    ret = []
    print(arr)
    for i in range(len(arr)):
        if arr[i] % 2 == 1:
            flag = False
            break
        arr[i] = arr[i] >> 1
        if arr[i] % 2 == 1:
            flag = False
            break
    if flag:
        counter = counter + 1

print(counter)