s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s932847620 | p03494 | u769739808 | 1562655186 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 307 | 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) |
s632458320 | p03494 | u769739808 | 1562655087 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 293 | 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)
|
s669257263 | p03494 | u439392790 | 1562641148 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 215 | 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)
|
s720037923 | p03494 | u439392790 | 1562641121 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 215 | 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)
|
s484174896 | p03494 | u003501233 | 1562267219 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | 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) |
s854002212 | p03494 | u003501233 | 1562267182 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 129 | 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) |
s408076774 | p03494 | u292735000 | 1562265940 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 252 | 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) |
s716863302 | p03494 | u292735000 | 1562265895 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 250 | 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) |
s828129466 | p03494 | u448655578 | 1561723495 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 155 | 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) |
s564738831 | p03494 | u568828194 | 1561111715 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 146 | 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) |
s048714411 | p03494 | u568828194 | 1561111660 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 129 | 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) |
s361689213 | p03494 | u974100230 | 1561087627 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 134 | 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) |
s567052454 | p03494 | u974100230 | 1561078757 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 145 | 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)
|
s391654872 | p03494 | u974100230 | 1561078633 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 149 | 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)
|
s848784509 | p03494 | u974100230 | 1560894061 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 122 | N = input()
A = list(map(int, input().split(' ')))
bit = 0
for a in A:
bit |= a
print(len(bit) - len(bit.rstrip('0'))) |
s835911888 | p03494 | u974100230 | 1560894022 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 120 | N = input()
A = list(map(int, input.split(' ')))
bit = 0
for a in A:
bit |= a
print(len(bit) - len(bit.rstrip('0'))) |
s026625214 | p03494 | u974100230 | 1560893744 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 118 | N = input()
A = map(int, input.split(' '))
bit = 0
for a in A:
bit |= a
print(len(bit) - len(bit.rstrip('0'))) |
s861348510 | p03494 | u813569174 | 1560889367 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 214 | 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) |
s233832780 | p03494 | u482933792 | 1560822384 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 227 | 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)
|
s740106826 | p03494 | u482933792 | 1560821014 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 182 | 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)
|
s976804307 | p03494 | u138236903 | 1560817518 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 222 | 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) |
s212807275 | p03494 | u138236903 | 1560817365 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 217 | 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) |
s511266347 | p03494 | u485566817 | 1560727310 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 128 | N = int(input())
A = map(int, input().split())
ans = 0
while A % 2 == 0:
A = A / 2
ans = ans +1
return ans
print(ans) |
s811696084 | p03494 | u830928831 | 1560713796 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 317 | # -*- 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)
|
s944676002 | p03494 | u105210954 | 1559966590 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 212 | _ = 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) |
s722143499 | p03494 | u583276018 | 1559692177 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 256 | 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) |
s725444706 | p03494 | u608913532 | 1559688182 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 128 | import math
n = int(input())
a = list(map(int, input().split()))
#math.floor
print(min(map(math.floor(math.log(x[2]))), a))) |
s775893521 | p03494 | u151281299 | 1559662933 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 256 | 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) |
s297356092 | p03494 | u151281299 | 1559662227 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 261 | 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) |
s776755425 | p03494 | u151281299 | 1559662192 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 261 | 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) |
s732036277 | p03494 | u008645430 | 1559595253 | Python | Python (3.4.3) | py | Runtime Error | 22 | 3444 | 319 | 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)
|
s895141329 | p03494 | u663014688 | 1559004250 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 170 | N = int(input())
A = list(map(int, input().split()))
cnt = 0
#A内のaすべてが偶数の場合
while all(a%2==0 for a in A):
A = A // 2
cnt += 1
print(cnt)
|
s800046945 | p03494 | u739721456 | 1558752911 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 202 | n=int(input())
a=[int(input()) for i in range(n)]
ans_list=[]
for j in range(n):
m=0
while a[j]%2==0:
m+=1
a[j]=a[j]//2
ans_list.append(m)
ans_list.sort()
print(ans_list[0]) |
s080385887 | p03494 | u046585946 | 1558296145 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 190 | n=int(input())
a=map(int,input().split())
ans=0
while 1:
for i in range(n):
if a[i]%2==0:
a[i]=a[i]//2
else:
break
else:
ans=ans+1
continue
break
print(ans) |
s591016383 | p03494 | u046585946 | 1558296099 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 190 | n=int(input())
a=map(int,input().split())
ans=0
while 1:
for i in range(n):
if s[i]%2==0:
s[i]=s[i]//2
else:
break
else:
ans=ans+1
continue
break
print(ans) |
s204131302 | p03494 | u450904670 | 1558236136 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 270 | n = input()
num = [int(i) for i in input().split()]
count = 0
end=False
while(True):
div = []
for i in num:
if(i % 2 == 0):
div.append(i/2)
else:
print(count)
end = True
break
if(end == True):
break
num = div
count = count + 1 |
s633120360 | p03494 | u450904670 | 1558236077 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 218 | count = 0
end=False
while(True):
div = []
for i in num:
if(i % 2 == 0):
div.append(i/2)
else:
print(count)
end = True
break
if(end == True):
break
num = div
count = count + 1 |
s011321328 | p03494 | u450904670 | 1558235867 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 260 | N = input()
num = [int(i) for i in input().split()]
count = 0
end=False
while(True):
div = []
for i in num:
if(i % 2 == 0):
div.append(i/2)
else:
print(count)
end = True
break
if(end == True):
break
num = div
count = count + 1
|
s602302680 | p03494 | u450904670 | 1558235602 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 227 | N = input()
num = input().split()
count = 0
end=False
while(True):
div = []
for i in num:
if(i % 2 == 0):
div.append(i/2)
else:
print(count)
end = True
if(end == True):
break
num = div
count = count + 1
|
s646271362 | p03494 | u450904670 | 1558234275 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 232 | N = input()
num = input().split()
count = 0
end=False
while(True):
div = []
for i in num:
if(i % 2 == 0):
div.append(i/2)
else:
print(count)
end = True
if(end == True):
break
num = div
count = count + 1
|
s870235712 | p03494 | u450904670 | 1558234178 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 187 | N = input()
num = input().split()
count = 0
while(True):
div = []
for i in num:
if(i % 2 == 0):
div.append(i/2)
else:
print(count)
break
num = div
count = count + 1
|
s560074742 | p03494 | u450904670 | 1558234108 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 195 | N = input()
num = input().split()
count = 0
while(True):
div = []
for i in num:
if(i % 2 == 0):
div.append(i/2)
else:
print(count)
break
num = div
count = count + 1
|
s975956730 | p03494 | u450904670 | 1558233723 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 198 | N = input()
num = input().split()
count = 0
while(True):
div = []
for i in num:
if(i % 2 == 0):
div.append(i/2)
else:
print(count)
break
num = div
count = count + 1
|
s807103480 | p03494 | u450904670 | 1558233687 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 193 | N = input()
num = input().split()
count = 0
while(True):
div = []
for i in num:
if(i % 2 == 0):
div.append(i/2)
else:
print(count)
break
num = div
count = count + 1
|
s520817937 | p03494 | u450904670 | 1558233626 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 192 | N = input()
num = input().split()
count = 0
while(True):
div = []
for i in num:
if(i % 2 == 0)
div.append(i/2)
else:
print(count)
break
num = div
count = count + 1
|
s770940861 | p03494 | u255943004 | 1558122311 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 188 | N = int(input())
A = [int(i) for i in input().split()]
import numpy as np
A = np.array(A)
cnt = 0
while True:
if (A%2).sum() == 0:
A = A/2
cnt += 1
else
break
print(cnt) |
s280744805 | p03494 | u298297089 | 1557948092 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 191 | N = int(input())
x = list(map(int, input().split()))
mn_lst = []
for i in x:
cnt = 0
while i % 2 == 0:
cnt += 1
i >>= 1
mn_lst.append(cnt)
print(min(mn_list)) |
s505126686 | p03494 | u298297089 | 1557948063 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 210 | N = int(input())
x = list(map(int, input().split()))
mn_lst = [0 for i in range(N)]
for i in x:
cnt = 0
while i % 2 == 0:
cnt += 1
i >>= 1
mn_lst.append(cnt)
print(min(mn_list)) |
s330247197 | p03494 | u298297089 | 1557947874 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 192 | N = int(input())
x = list(map(int, input().split())
cnt = 0
mn_lst = []
for i in x:
cnt = 0
while i % 2 == 0:
cnt += 1
i <<= 1
mn_lst.append(cnt)
print(min(mn_lst)) |
s819359803 | p03494 | u796789068 | 1557864918 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 171 | N=int(input())
A=list(map(int,input().split()))
n=0
while(True):
for i in A:
if i%2==0:
A[i]=A[i]/2
else:
print(n)
n+=1 |
s500426456 | p03494 | u870198083 | 1557745434 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 210 | N = input()
data = list(map(lambda x :int(x)%2,input().strip().split("")))
res = sum(data)
if res ==1:
print(0)
else:
data.sort()
tmp = data[0]
cnt = 0
while tmp!=1:
tmp/=2
cnt+=1
print(cnt) |
s345780453 | p03494 | u469277091 | 1557705825 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 155 | N = int(input())
a = list(map(int, input().split(" ")))
ans = float("ïnf")
for i in a:
ans = min(ans, len(bin(i)) - bin(i).rfind("1") -1)
print(ans) |
s359606850 | p03494 | u382431597 | 1557695487 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 167 | import sys
n = int(input())
a = list(map(int, input().split()))
count = 0
while all(a[i] % 2 == 0 for i in a):
a = [a[i] // 2 for i in a]
count+=1
print(count) |
s467755984 | p03494 | u096983897 | 1556968124 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 210 | import sys
size = int(input())
a = map(int, input().split())
cnt = 0
while True:
for i in range(size):
if(a[i]%2 == 1):
print(cnt)
sys.exit()
a = list(map(lambda x:x/2, a))
cnt+=1 |
s369849420 | p03494 | u096983897 | 1556967813 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 205 | import sys
size = int(input())
a = map(int, input().split())
cnt = 0
while True:
for i in range(size):
if(a[i]%2 == 1):
print(cnt)
sys.exit()
a = map(lambda x:x/2, a)
cnt+=1
|
s634983717 | p03494 | u096983897 | 1556967366 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 215 | import sys
size = int(input())
a = map(int, input().split())
cnt = 0
while true:
for i in range(size):
if(a[i]%2 == 1):
print(cnt)
sys.exit()
a = map(lambda x:x/2, a)
cnt +=1
|
s590017243 | p03494 | u096983897 | 1556965690 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 212 | loop = input()
a = map(int, input().split())
cnt = 0
while(1):
flg = 0
for i in a:
if(a%2 == 1):
flg = 1
else:
i = i/2
if(flg == 0):
cnt += 1
else:
break
print(cnt)
|
s248329039 | p03494 | u166621202 | 1556930056 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 125 | N=int(input())
A=list(int,input().split())
cnt=0
while all(i%2 == 0 for i in A):
A = [i/2 for i in A]
cnt+=1
print(cnt)
|
s114296972 | p03494 | u166621202 | 1556929797 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 127 | N=int(input())
A=[input() for i in range(N)]
cnt=0
while all(i%2 == 0 for i in A):
A = [i/2 for i in A]
cnt+=1
print(cnt)
|
s193192664 | p03494 | u717993780 | 1556920618 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 144 | n = int(input())
li = input().split()
lians = [0]*n
for i in range(n):
while li[i]%2 == 0:
li[i] /= 2
lians[i] += 1
print(max(lians)) |
s618259986 | p03494 | u204800924 | 1556915601 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 250 | N = int(input())
A = map(int, input().split())
count = -1
flag = True
while flag == True:
count += 1
for i in range(N):
if A[i]%2 == 0:
A[i] /= 2
else:
flag = False
break
print(count)
|
s709782445 | p03494 | u204800924 | 1556915295 | Python | Python (3.4.3) | py | Runtime Error | 20 | 2940 | 252 | N = int(input())
A = map(int, input().split())
count = 0
flag = True
while flag == True:
for i in range(N):
if A[i]%2 == 0:
A[i] /= 2
else:
flag = False
break
count += 1
print(count)
|
s286317627 | p03494 | u204800924 | 1556915256 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 238 | N = int(input())
A = map(int, input().split())
count = 0
flag = True
while flag == True:
for i in range(N):
if A[i]%2 == 0:
A[i] /= 2
else:
flag = False
break
count += 1
|
s437312533 | p03494 | u635958201 | 1556906580 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3060 | 216 | N = int(input())
A = list(map(int,input().split()))
count=-1
while len(A)==N:
count+=1
for i in range(N-1):
if A[i]%2==0:
A[i]=A[i]/2
else:
A.remove(A[i])
print(count) |
s502454708 | p03494 | u062306892 | 1556607098 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 166 | n = int(input())
a = [int(i) for i in input().spliit()]
ans = 0
while True:
if [i for i in a if a%2 == 1]:
break
a = [ i//2 for i in a]
ans += 1
print(ans) |
s099765385 | p03494 | u062306892 | 1556606282 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 119 | n = int(input())
a = map(int, input().split())
ans = 1
while True:
if a%2 == 1:
print(0)
print(ans)
ans += 1 |
s371186254 | p03494 | u325282913 | 1556576003 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 200 | N = int(input())
A = list(map(int, input().split()))
while(True):
for i in range(N):
if A[i] % 2 == 0:
A[i] = A[i] / 2
else:
break
ans += 1
print(ans)
|
s857422324 | p03494 | u642085002 | 1556148702 | Python | Python (3.4.3) | py | Runtime Error | 23 | 3572 | 280 | from itertools import takewhile
from functools import reduce
data_num = int(input())
data_list = [bin(int(num)) for num in input().split(' ')]
combine_data = reduce(lambda x, y: x or y, data_list)
results = takewhile(lambda x: x == '0', combine_data[::-1])
print(len(results)) |
s929040028 | p03494 | u422324503 | 1556142520 | Python | Python (3.4.3) | py | Runtime Error | 149 | 12436 | 179 | import numpy as np
N = int(input())
a = [int(i) for i in input().split()]
b = np.zeros_like(a)
t = 0
while [i % 2 for i in a] == b:
a = [i / 2 for i in a]
t = t + 1
print(t)
|
s858703308 | p03494 | u488737015 | 1556069756 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 301 | n = input()
int_list = [int(input()) for i in range(n)]
count = 0
while True:
isOdd = False
for i in range(n):
if(int_list[i] % 2 != 0):
isOdd = True
if isOdd:
break
for i in range(n):
int_list[i] = int_list[i]/2
count = count + 1
print(count)
|
s168330897 | p03494 | u218724761 | 1555881724 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 175 | import math
n = input()
a = list(map(int, input().split()))
ans = float("inf")
for i in a:
b = len(bin(i)) - bin(i).rfind("1") - 1)
ans = min(ans, b)
print(round(ans)) |
s055378225 | p03494 | u979362546 | 1555805840 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | n = input()
a = list(map(int, input().split()))
cnt = 0
while all(i%2==0 for i in a):
a = [i/2 for in a]
cnt += 1
print(cnt)
|
s310401017 | p03494 | u979362546 | 1555805670 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | n = input()
a = list(map(int, input().split()))
cnt = 0
while all(i%2==0 for i in a):
a = [i/2 for in a]
cnt += 1
print(cnt)
|
s079016977 | p03494 | u979362546 | 1555805534 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 131 | n = input()
a = list(map(int, input().split()))
cnt=0
while all(i%2==0 for i in a) :
a = [i/2 for in a]
cnt += 1
print(cnt) |
s951512403 | p03494 | u979362546 | 1555805262 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 130 | n = input()
a = list(map(int, input().split()))
cnt=0
while all(i%2==0 for i in a):
a = [i/2 for in a]
cnt += 1
print(cnt) |
s841913894 | p03494 | u979362546 | 1555805232 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | n = input()
a = list(map(int, input().split()))
cnt=0
while all(i%2==0 for i in a):
a = [i/2 for in a]
cnt += 1
print(cnt) |
s157300173 | p03494 | u137722467 | 1555697853 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 195 | num = int(input())
a = list(map(int, input().split()))
count = 0
for i in a:
c = 0
while i != 0 and i % 2 == 0:
i /= 2
c += 1
if c <= count or count = 0:
count = c
print(count) |
s491190940 | p03494 | u330314953 | 1555631394 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 216 | n = int(input())
a = list(map(int,input().split()))
z = 9
for i in range(n):
m = a[i]
cnt = 0
if m % 2 == 0:
while m % 2 == 0:
m=m/2
cnt += 1
z = min(z,cnt)
print(z) |
s731121568 | p03494 | u714300041 | 1555373893 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 204 | 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) |
s429307964 | p03494 | u714300041 | 1555373821 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 203 | 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 |
s779553948 | p03494 | u714300041 | 1555373768 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 204 | 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
|
s712625776 | p03494 | u714300041 | 1555373696 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 200 | 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, input().split())
ans = min(map(how_many_times_divisible, a))
print ans
|
s074810886 | p03494 | u714300041 | 1555301650 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 187 | N = int(input())
nums = list(map(int, input().split()))
multi = reduce(mul, nums)
n = 0
while multi % 2 == 0:
nums = [i/2 for i in nums]
multi = reduce(mul, nums)
n += 1
print(n) |
s359746948 | p03494 | u714300041 | 1555301486 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 189 |
N = int(input())
nums = list(map(int, input().split()))
multi = reduce(mul, nums)
n = 0
while multi % 2 == 0:
nums = [i/2 for i in nums]
multi = reduce(mul, nums)
n += 1
print(n)
|
s131418779 | p03494 | u714300041 | 1555301447 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 189 |
N = int(input())
nums = list(map(int, input().split()))
multi = reduce(mul, nums)
n = 0
while multi % 2 == 0:
nums = [i/2 for i in nums]
multi = reduce(mul, nums)
n += 1
print(n) |
s669630104 | p03494 | u714300041 | 1555301365 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 189 | N = int(input())
nums = list(map(int, input().split()))
multi = reduce(mul, nums)
n = 0
while multi % 2 == 0:
nums = [i/2 for i in nums]
multi = reduce(mul, nums)
n += 1
print(n) |
s570525446 | p03494 | u714300041 | 1555301123 | Python | Python (3.4.3) | py | Runtime Error | 24 | 3572 | 225 | from functools import reduce
from operator import mul
N = int(input())
nums = list(map(int, input().split()))
multi = reduce(mul, nums)
n = 0
while multi % 2 == 0:
nums /= 2
multi = reduce(mul, nums)
n += 1
print(n)
|
s371312520 | p03494 | u610473220 | 1555194580 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 296 | N = int(input())
A = list(map(int, input().split()))
cau = 0
flag = "go"
while flag == "go":
for i in range(N):
if(A[i] % 2 == 1):
flag = "stop"
break
if(flag = "go"):
for i in range(N):
A[i] = A[i]/2
cau += 1
print(cau) |
s278844745 | p03494 | u610473220 | 1555194408 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 294 | N = int(input())
A = list(map(int, input().split()))
cau = 0
flag = "0"
while flag == "0":
for i in range(N):
if(A[i] % 2 != 1):
flag = "1"
break
if(flag = "0"):
for i in range(N):
A[i] = A[i]/2
cau += 1
print(cau) |
s281535889 | p03494 | u610473220 | 1555194369 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 322 | N = int(input())
A = list(map(int, input().split()))
for n in range(N):
caunter = 0
flag = "0"
while flag == "0":
for i in range(N):
if(A[i] % 2 != 1):
flag = "1"
break
if(flag = "0"):
for i in range(N):
A[i] = A[i]/2
caunter += 1
print(caunte... |
s708302833 | p03494 | u610473220 | 1555194111 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 322 | N = int(input())
A = list(map(int, input().split()))
for n in range(N):
caunter = 0
flag = "0"
while flag == "0":
for i in range(N):
if(A[i] % 2 != 1):
flag = "1"
break
if(flag = "0"):
for i in range(N):
A[i] = A[i]/2
caunter += 1
print(caunte... |
s395556695 | p03494 | u610473220 | 1555193321 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 200 | N = input()
A = list(input())
intA = [int(s) for s in A]
j = 1
c = 0
while j == 1 :
for i in range(len(intA)):
if(intA[i]%2==1):
j = 0
else:
c += 1
print(c) |
s357880326 | p03494 | u145889196 | 1555079700 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 167 | N=int(input())
A=list(map(int,input().split()))
ans=0
for i,j in enumerate(A):
if j%2!=0:
print(ans)
exit()
else:
A[i]=j/2
count+=1 |
s612541287 | p03494 | u118645446 | 1555028164 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 336 | kazu = int(input())
numbers_list = list(map(int, input().split()))
count = 0
seisu = 0
while True:
for index in range(kazu):
if numbers_list[index] % 2 != 0:
seisu = 1
break
else:
numbers_list[index] = numbers_list / 2
if seisu == 1:
break
count +=... |
s321201737 | p03494 | u118645446 | 1555027361 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 350 | kazu = int(input())
numbers_list = list(map(int, input().split()))
count = 0
seisu = 0
while True:
for index in range(kazu):
if numbers_list(index) % 2 == 0:
numbers_list[inedx] = numbers_list[index] / 2
count += 1
else:
seisu = 1
break
if seisu ==... |
s993530788 | p03494 | u778814286 | 1554610762 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 288 | n = int(input().rstrip())
values = list(map(int,input().rstrip().
ssplit()))
m = 500000000 #max divide
for i in range(len(values)):
nowV = values[i]
nm = 0
for j in range(500000000):
if nowV % 2 == 0:
nm += 1
nowV = nowV / 2
m = min(m,n)
else:
break
print(m)
|
s255270070 | p03494 | u106184985 | 1554555851 | Python | Python (3.4.3) | py | Runtime Error | 157 | 12488 | 188 | import numpy as np
N = input()
s = np.array(map(int, input().split()))
count = 0
while True:
_exp = 2**(count+1)
if np.all( s%_exp == 0):
count += 1
else:
break
print(count)
|
s640342816 | p03494 | u106184985 | 1554555707 | Python | Python (3.4.3) | py | Runtime Error | 151 | 12424 | 177 | import numpy as np
N = input()
s = np.array(map(int, input().split()))
count = 0
while True:
if np.all( (s%2) == 0):
count += 1
s = s/2
else:
break
print(count)
|
s989840561 | p03494 | u106184985 | 1554555635 | Python | Python (3.4.3) | py | Runtime Error | 151 | 12504 | 175 | import numpy as np
N = input()
s = np.array(map(int, input().split()))
count = 0
while True:
if np.all( (s%2) == 0):
count += 1
s = s
else:
break
print(count)
|
s715598218 | p03494 | u106184985 | 1554555483 | Python | Python (3.4.3) | py | Runtime Error | 308 | 18576 | 165 | import numpy as np
N = input()
s = map(int, input().split())
count = 0
while True:
if np.all( (np.array(s)%2) == 0):
count += 1
else:
break
print(count)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.