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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s134206733 | p03494 | u040141413 | 1586044048 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 225 | n = input()
li = list(map(int,input().split())
cnt = 0
while True:
for i in range(n):
if li[i]%2 ==0:
li[i]=li[i]/2
else:
break
if(i==n-1):
cnt += 1
print(cnt) |
s942394550 | p03494 | u626467464 | 1585981127 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 172 | n = int(input())
line = list(map(int,input().split()))
box = []
for j in line:
for i in range(30):
if j % 2**i != 0:
box.append(i-1)
break
print(min(box)) |
s980831636 | p03494 | u626467464 | 1585981026 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 173 | n = int(input())
line = list(map(int,input().split()))
box = []
for j in line:
for i in range(30):
if j % 2**i != 0:
box.append(i-1)
break
print(max(box))
|
s330508939 | p03494 | u212328220 | 1585716337 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3060 | 315 | n = int(input())
a_str = input()
a_list = list(map(int,a_str.split()))
n_list = []
for a in a_list:
if int(a) % 2 != 0:
print(0)
break
else:
i = 0
while int(a) > 1 and int(a) % 2 == 0:
a = int(a) / 2
i += 1
n_list.append(i)
print(min(n_list))
|
s834919175 | p03494 | u626467464 | 1585686142 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 174 | n = int(input())
line = map(int,input().split())
box = []
for i in line:
for j in range(1,10):
if i % 2**j != 0:
box.append(j - 1)
answer = min(box)
print(answer) |
s100145506 | p03494 | u626467464 | 1585685908 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 173 | n = int(input())
line = map(int,input().split())
box = []
for i in line:
for j in range(1,9):
if i % 2**j != 0:
box.append(j - 1)
answer = min(box)
print(answer) |
s348784899 | p03494 | u984924962 | 1585626701 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 186 | n = int(input())
li = list(map(int,input().split()))
prod = 1
for i in range(n):
prod *= li[i]
count = 0
while (prod % (2**n)) == 0:
prod = int(prod / (2**n))
count += 1
print(count) |
s986968768 | p03494 | u354863714 | 1585546655 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 306 | #(問3)ANS
iter = map(int,input().split())
all_list = []
for i in iter:
all_list.append(i)
N = all_list[0]
A_list = all_list[1:]
iter_num_list = []
for a in A_list:
count = 0
while a%2 == 0:
a = a/2
count += 1
iter_num_list.append(count)
ans = min(iter_num_list)
print(ans) |
s812762335 | p03494 | u955907183 | 1585504296 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 254 | a = int(input())
b = map(int, input().split())
cnt = 0
endflag = False
while(True):
for i in range(0,len(b)-1):
if (3 == 0):
b[i] = b[i] /2
else:
endflag = True
cnt = cnt +1
if (endflag == True):
break
print(cnt)
|
s796833207 | p03494 | u955907183 | 1585504257 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 264 | a = int(input())
b = map(int, input().split())
cnt = 0
endflag = False
while(True):
for i in range(0,len(b)-1):
if ((b[i] % 2 ) == 0):
b[i] = b[i] /2
else:
endflag = True
cnt = cnt +1
if (endflag == True):
break
print(cnt)
|
s272221604 | p03494 | u955907183 | 1585504234 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 254 | a = int(input())
b = map(int, input().split())
cnt = 0
endflag = False
while(True):
for i in range(0,len(b)-1):
if (3 == 0):
b[i] = b[i] /2
else:
endflag = true
cnt = cnt +1
if (endflag == True):
break
print(cnt)
|
s479648198 | p03494 | u955907183 | 1585504189 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 264 | a = int(input())
b = map(int, input().split())
cnt = 0
endflag = False
while(True):
for i in range(0,len(b)-1):
if ((b[i] % 2 ) == 0):
b[i] = b[i] /2
else:
endflag = true
cnt = cnt +1
if (endflag == True):
break
print(cnt)
|
s025467290 | p03494 | u955907183 | 1585504139 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 256 | a = int(input())
b = map(int, input().split())
cnt = 0
endflag = False
while(True):
for i in range(0,len(b)-1):
if ((b[i] % 2 ) == 0):
b[i] = b[i] /2
else:
endflag = true
cnt = cnt +1
if (endflag):
break
print(cnt)
|
s311518239 | p03494 | u955907183 | 1585504059 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 258 | a = int(input())
b = map(int, input().split())
cnt = 0
endflag = False
while(True):
for i in range(0,len(b)-1):
if ((b[i] % 2 ) == 0):
b[i] = b[i] /2
else:
endflag = true
cnt = cnt +1
if (endflag):
break;
print(cnt)
|
s072908548 | p03494 | u955907183 | 1585504029 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 258 | a = int(input())
b = map(int, input().split())
cnt = 0
endflag = false
while(True):
for i in range(0,len(b)-1):
if ((b[i] % 2 ) == 0):
b[i] = b[i] /2
else:
endflag = true
cnt = cnt +1
if (endflag):
break;
print(cnt)
|
s621162881 | p03494 | u034128150 | 1585500600 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 222 | def how_many_times_divisible(n):
counter = 0
while n % 2 == 0:
n //= 2
counter +=1
return counter
_ = input()
return min(map(lambda x: how_many_times_divisible(int(x)), input().split())
|
s455639324 | p03494 | u148753842 | 1585458982 | Python | PyPy3 (2.4.0) | py | Runtime Error | 170 | 38256 | 156 | N = int(input())
A = list(map(int, input().split()))
import numpy as np
A = np.array(A)
count = 0
while((A%2==0).all()):
A=A/2
count+=1
print(count) |
s930475143 | p03494 | u148753842 | 1585458909 | Python | PyPy3 (2.4.0) | py | Runtime Error | 164 | 38384 | 150 | import numpy as np
N = int(input())
A = np.array(list(map(int, input().split())))
count = 0
while((A%2==0).all()):
A=A/2
count+=1
print(count) |
s977967550 | p03494 | u459017223 | 1585450461 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 137 | input()
A = list(map(int, input().split()))
count == 0
while all(a % 2 == 0 for a in A)
A == [a/2 for a in A]
count += 1
print(count) |
s917188889 | p03494 | u696444274 | 1585443067 | Python | Python (3.4.3) | py | Runtime Error | 188 | 6044 | 215 |
import math
import itertools
import statistics
#import collections
n = int(input())
A = (map(int, input().split()))
count = 0
while sum(A)%2==0:
for i in range(n):
A[i] /= 2
count += 1
print(count) |
s152034659 | p03494 | u696444274 | 1585443011 | Python | Python (3.4.3) | py | Runtime Error | 173 | 6044 | 215 |
import math
import itertools
import statistics
#import collections
n = int(input())
A = (map(int, input().split()))
count = 0
while sum(A)%2==0:
for i in range(n):
A[i] /= 2
count += 1
print(count) |
s296036546 | p03494 | u696444274 | 1585442981 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 219 |
listimport math
import itertools
import statistics
#import collections
n = int(input())
A = (map(int, input().split()))
count = 0
while sum(A)%2==0:
for i in range(n):
A[i] /= 2
count += 1
print(count) |
s887038936 | p03494 | u568712356 | 1585419349 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 171 | import math
n = int(input())
a = list(map(int, input().split()))
mini = float(inf)
for i in a:
mini = min(mini, len(bin(i)) - bin(i).rfind("1") - 1)
print(round(mini)) |
s663578972 | p03494 | u989345508 | 1585316931 | Python | Python (3.4.3) | py | Runtime Error | 22 | 3572 | 167 | from functools import reduce
from math import gcd
n=int(input())
a=list(map(int,input().split()))
x=reduce(gcd,a)
ans=0
while x%2==0:
ans+=1
x//=2
print(ans)
|
s016263535 | p03494 | u989345508 | 1585316771 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 147 | n=int(input())
a=list(map(int,input().split()))
ans=0
while all(i%2==0 for i in a):
ans+=1
for j in range(n):
a[i]//=2
print(ans)
|
s853033215 | p03494 | u989345508 | 1585316761 | Python | Python (3.4.3) | py | Runtime Error | 28 | 3572 | 167 | from functools import reduce
from math import gcd
n=int(input())
a=list(map(int,input().split()))
x=reduce(gcd,a)
ans=0
while x%2==0:
ans+=1
x//=2
print(ans)
|
s345501273 | p03494 | u094155508 | 1585020133 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 239 | n = int(input())
a = list(map(int,input().split()))
ans = 10**9 // テキトーに大きな値入れておく
for i in range(n):
count = 0
while a[i] % 2 == 0:
a[i] //= 2
count += 1
ans = min(ans, count)
print(ans) |
s773711991 | p03494 | u777780532 | 1584933543 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 104 | input()
count = 0
while all(a % 2 == 0 for a in A):
A = [a / 2 for a in A]
count += 1
print(count) |
s927080603 | p03494 | u211805975 | 1584816544 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 146 | n=int(input())
a=list(map(int,input().split())
ans=0
while True:
if[i for i in a if i%2==1]:
break
a=[i/2 for i in a]
ans+=1
print(ans) |
s724259942 | p03494 | u160972560 | 1584810949 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 401 | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 21 12:49:13 2020
@author: 藤原聖士
"""
N=int(input())
A=[]
check=0
answer=-1
for i in range(N):
A.append(int(input()))
check=A[i]
#print(A)
count=0
while check % 2==0:
count+=1
check=check/2
#print(check)
if answer>count:
... |
s430507288 | p03494 | u444722572 | 1584810553 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 129 | input()
A=list(map(int,input().split())
count=0
while all(a%2==0 for a in A):
A=[a/2 for a in A]
count +=1
print(count)
|
s728372861 | p03494 | u533344362 | 1584737385 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 177 | n = int(input())
nums = [int(i) for i in input().split()]
ans = 0
while True:
if [i for i in nums if i % 2 == 1]
break
nums = [i//2 for i in nums]
ans += 1
print(ans)
|
s808383242 | p03494 | u533344362 | 1584737328 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 178 | n = int(input())
nums = [int(i) for i in input().split()]
ans = 0
while True:
if [i for i in nums if i % 2 == 1]
break
nums = [i/2 for i in nums]
ans += 1
print(ans)
|
s737409384 | p03494 | u533344362 | 1584737188 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 180 | n = int(input())
nums = [int(i) for i in input().split()]
ans = 0
while True:
if [i for i in nums if i % 2 == 1]
break
nums = [i/2 for i in nums]
ans += 1
print(ans)
|
s896922228 | p03494 | u533344362 | 1584737127 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 180 | n = int(input())
nums = [int(i) for i in input().split()]
ans = 0
while True:
if [i for i in nums if i % 2 == 1]
break
nums = [i//2 for i in nums]
ans += 1
print(ans) |
s024466018 | p03494 | u697696097 | 1584678537 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 176 | import sys
n=int(input())
aa=list(map(int,input().split()))
cnt=0
while 1:
for i in range(n):
if aa[i]%2>0
print(cnt)
sys.exit()
aa[i]=aa[i]//2
cnt+=1 |
s977630638 | p03494 | u935984175 | 1584659578 | Python | Python (3.4.3) | py | Runtime Error | 23 | 3316 | 384 | from collections import defaultdict
def solve():
N, K = map(int, input().split())
A = list(map(int, input().split()))
counter = defaultdict(int)
for ai in A:
counter[ai] += 1
sorted_c = sorted(counter.values())
ans = 0
for i in range(len(counter) - K):
ans += sort... |
s020360174 | p03494 | u829094246 | 1584474482 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 228 | N=int(input().rstrip().split())
An=list(map(int, input().rstrip().split()))
cnt=0
while True:
if len(list(filter(lambda a:(a+1)%2, An))) < len(An):
break
An=list(map(lambda a:int(a/2), An))
cnt+=1
print(cnt)
|
s741931441 | p03494 | u085334230 | 1584417300 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 291 | N = int(input())
A = list(map(int,input().split()))
j = True
count = 0
while j :
for i in range(N):
if A[i] % 2 == 0 or A[i] == 0:
A[i] =/ 2
else:
j = False
if j == True:
count += 1
print(count) |
s028029257 | p03494 | u085334230 | 1584416806 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 273 | N = int(input())
A = list(map(int,input().split()))
j = True
count = 0
while j:
for i in A:
if i % 2 == 0:
A[A.index(i)] = i / 2
else:
j = False
break
count += 1
print(count)
|
s684749411 | p03494 | u631429391 | 1584315582 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 201 | N = int(input('N='))
A = list(map(int,input().split()))
times = 0
while True:
for i in A:
amari += i%2
if amari == 0:
times += 1
for j in A:
j = j/2
else:
break
print(times) |
s874538246 | p03494 | u699944218 | 1584213995 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 128 | n = input()
A = list(map(int,input().split()))
count = 0
while all(a % 2 == 0 for a in A):
A = [a/2]
count += 1
print(count) |
s195258864 | p03494 | u699944218 | 1584213645 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 110 | n = int(input())
A = list(map(int, input().split()))
while a % 2 == 0 in A:
a /= 2
count += 1
print(count) |
s130102933 | p03494 | u227082700 | 1584195899 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 66 | _,*a=open(0);print(min((int(x)&-int(x)).bit_length()for x in a)-1) |
s814384201 | p03494 | u656391577 | 1584145780 | Python | PyPy3 (2.4.0) | py | Runtime Error | 170 | 38256 | 154 | import numpy as np
N = input()
A = np.array(list(map(int, input().split())))
count = 0
while all(a%2==0 for a in A):
A = A/2
count+=1
print(count) |
s173739756 | p03494 | u474423089 | 1584132650 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 161 | from sympy import factorint
n=int(input())
A=list(map(int,input().split(' ')))
ans = []
for i in A:
tmp = factorint(i)
ans.append(tmp[2])
print(min(ans)) |
s974509879 | p03494 | u809336474 | 1584109513 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 250 | mylist = []
for i in range(0, 2):
val = input()
if val:
mylist.append(val)
a = mylist[1:]
cnt = 0
while True:
if all(map(lambda x: x % 2 == 0, a)) == False:
break
a = list(map(lambda x:x//2,a))
cnt +=1
print (cnt) |
s749503305 | p03494 | u091852005 | 1584106224 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 222 | odd_flag = False
count = 0
while True:
for i, j in enumerate(A):
if j % 2 == 1:
odd_flag = True
break
A[i] = j / 2
if not odd_flag:
count += 1
else:
break |
s995273837 | p03494 | u026953487 | 1584067214 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 219 | N, M = map(int, input().split())
cnt = 0
while True:
flag = 0
for i in range(N):
if M(N) % 2 == 1:
flag = 1
break
else:
M(N) = M(N) / 2
if flag == 1:
print(cnt)
else:
cnt += 1
|
s959333609 | p03494 | u246809151 | 1584023255 | Python | Python (3.4.3) | py | Runtime Error | 20 | 2940 | 187 | N = int(input())
A = list(map(int, input().split()))
cnt =0
while True:
if [i for i in A if i%2 == 1]:
break
A = [i/2 for i in A if i%2 ==0]
cnt += 1
prnt(cnt)
|
s594414808 | p03494 | u992910889 | 1583985226 | Python | PyPy3 (2.4.0) | py | Runtime Error | 177 | 38512 | 409 | # import bisect
# import copy
# import fractions
# import math
import numpy as np
# from collections import Counter, deque
# from itertools import accumulate,permutations, combinations,combinations_with_replacement,product
def resolve():
n=int(input())
A=np.array(list(map(int,input().split())))
cnt=0
... |
s558512540 | p03494 | u992910889 | 1583985163 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38256 | 409 | # import bisect
# import copy
# import fractions
# import math
import numpy as np
# from collections import Counter, deque
# from itertools import accumulate,permutations, combinations,combinations_with_replacement,product
def resolve():
n=int(input())
A=np.array(list(map(int,input().split())))
cnt=0
... |
s190403654 | p03494 | u992910889 | 1583984970 | Python | PyPy3 (2.4.0) | py | Runtime Error | 177 | 38512 | 176 | def resolve():
n=int(input())
A=list(map(int,input().split()))
cnt=0
while all(i%2==0 for i in A):
A = A//2
cnt+=1
print(cnt)
resolve()
|
s826694105 | p03494 | u992910889 | 1583984940 | Python | PyPy3 (2.4.0) | py | Runtime Error | 163 | 38256 | 411 | # import bisect
# import copy
# import fractions
# import math
#import numpy as np
# from collections import Counter, deque
# from itertools import accumulate,permutations, combinations,combinations_with_replacement,product
def resolve():
n=int(input())
A=np.array(list(map(int,input().split())))
cnt=0
... |
s509428797 | p03494 | u536642030 | 1583962492 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 236 | N = input()
hoge = map(int,input().split())
fuga = [bin(i) for i in hoge]
count = 10000000
for i in fuga:
tmp = i[::-1]
for j in range(len(i)):
if tmp[j] == '1' and count > j:
count = j
break
print(count)
|
s880121171 | p03494 | u536642030 | 1583962431 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 250 | N = input()
hoge = map(int,input().split())
fuga = [bin(i) for i in hoge]
count = 10000000
for i in fuga:
tmp = i[::-1]
for j in range(len(i)):
if tmp[j] == '1' and count > j:
count = j
break
print(count)
|
s189410909 | p03494 | u256921850 | 1583901787 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 159 | 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)) |
s246224328 | p03494 | u299251530 | 1583885627 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 199 | n = int(input())
List=list(map(int,input().split()))
result = 0
while true:
for j in range(n):
if List[j]%2 != 0:
break
List[j] /= 2
else:
result += 1
continue
break
print(result) |
s823765515 | p03494 | u299251530 | 1583885523 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 201 | n = int(input())
List=list(map(int,input().split()))
result = 0
for i in 200:
for j in range(n):
if List[j]%2 != 0:
break
List[j] /= 2
else:
result += 1
continue
break
print(result) |
s635390841 | p03494 | u699944218 | 1583882315 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 136 | N = int(input())
A = list(map(int, input().split()))
count = 0
while all(a % 2 == 0 for a in A):
A = [a / 2]
count += 1
print(count) |
s449178155 | p03494 | u069547849 | 1583787997 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 2940 | 354 | li = map(int, input().split())
number = 0
even_or_odd = 1
def check_number(list):
for i in list:
if i % 2 == 0:
continue
else:
even_or_odd *= 0
def cut_in_two(list):
for i in list:
i /= 2
while True:
if even_or_odd == 1:
check_number(li)
cut_in_two(li)
number += 1
els... |
s541360667 | p03494 | u699944218 | 1583712779 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 143 | N = int(input())
A = [int(i) for i in input().split()]
for i in input().split():
if A[i] % 2 == 0:
A[i] /= 2
else:
print(int(A[i])) |
s834239596 | p03494 | u699944218 | 1583707518 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 130 | s = map(int(input().split()))
n = 0
i = 0
cout = 0
for i in s:
if s[i] % 2 == 0:
cout += 1
else:
cout += 0
print(cout) |
s824560066 | p03494 | u446371873 | 1583699085 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 298 | m = int(input())
number_list = list(map(int,input().split()))
n = 0
while 1:
bool f = False
for i in range(0,m):
if number_list[i] % 2 != 0:
f = True
if f == True:
break
for i in range(0,m):
number_list[i] = number_list[i] / 2
n += 1
print(n) |
s618485628 | p03494 | u414050834 | 1583373706 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 132 | s = map(int,input().split())
c = 0
for i in range(len(s)):
while s[0] % 2 == 0:
s[i] = s[i]/2
c = c + 1
return c |
s227158457 | p03494 | u414050834 | 1583373089 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 201 | s = map(int,input().split())
c = 0
while a[len(s)] % 2 == 0:
for i in range(len(s)):
if a[i] % 2 == 0:
a[i] = a[i] / 2
c = c + 1
else:
break
return c |
s119808336 | p03494 | u374146618 | 1582986435 | Python | Python (3.4.3) | py | Runtime Error | 151 | 13412 | 141 | import numpy as np
n = int(input())
a = [int(x) for x in input().split()]
cnt = 0
while sum(a%2) == 0:
cnt += 1
a = a//2
print(cnt) |
s379916849 | p03494 | u374146618 | 1582986325 | Python | Python (3.4.3) | py | Runtime Error | 148 | 12428 | 140 | import numpy as np
n = int(input())
a = [int(input()) for _ in range(n)]
cnt = 0
while sum(a%2) == 0:
cnt += 1
a = a//2
print(cnt) |
s175469962 | p03494 | u323045245 | 1582917760 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 163 | 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) |
s303372978 | p03494 | u998262711 | 1582842277 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 217 | n = int(input())
a = [int(x) for x in input().split()]
counter=0
while True:
z=2**(counter+1)
for i in range(n):
if a[i]%z==0:
else :
print(counter)
break
counter+=1 |
s661114469 | p03494 | u998262711 | 1582841564 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 209 | a = [int(x) for x in input().split()]
d=0
while True:
c=0
for i in range(n):
if a[i]%2==0:
a[i]=a[i]/2
c+=1
if c==0:
break
else:
d+=1
print(d-1)
|
s726587610 | p03494 | u998262711 | 1582841530 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 206 | a = [int(x) for x in input().split()]
d=0
while True:
c=0
for i in range(n):
if a[i]%2==0:
a[i]=a[i]/2
c+=1
if c==0:
break
else:
d+=1
print(d) |
s082799324 | p03494 | u744034042 | 1582757001 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 114 | A = [input().split()]
count = 0
while all(a % 2 == 0 for a in A):
A = [a/2 for a in A]
count += 1
print(count) |
s117989278 | p03494 | u744034042 | 1582749554 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 118 | count = 0
A = [input().split()]
while all(a % 2 == 0 for a in A):
A = [a/2 for a in A]
count += 1
print(count) |
s277713030 | p03494 | u744034042 | 1582747969 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | count = 0
while all(a % 2 == 0 for a in A):
A = [a/2 for a in A]
count += 1
print(count) |
s095915439 | p03494 | u291628833 | 1582686515 | Python | PyPy3 (2.4.0) | py | Runtime Error | 160 | 38256 | 183 | n = int(input())
a_L = list(map(int,input().split()))
ans = 0
while True:
for i in range(a_L):
if a_L[i]%2 != 0:
print(ans)
exit()
a_L[i] = a_L[i]%2
ans += 1 |
s877892352 | p03494 | u557282438 | 1582684247 | Python | Python (3.4.3) | py | Runtime Error | 20 | 2940 | 218 | n = int(input())
s = list(map(int,input().split()))
count = -1
error = 0
while(error == 0):
count = count + 1
for i in range(len(s)):
if(s[i]%2 != 0):
error = 1
break
print(count) |
s541973844 | p03494 | u886712136 | 1582432126 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 174 | N = int(input())
num = list(map(int, input().split()))
counter = [0] * N
for j in range(N):
while num[i]%2==0:
num[i] = num[i]/2
counter[i] += 1
print(min(counter)) |
s802733785 | p03494 | u907549201 | 1582419132 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 254 | input()
num_list = list(map(int, input().split()))
min_cnt = 0
for num in num_list:
min_cnt = 0
while True:
if num % 2 == 1:
if num_cnt < min_cnt: min_cnt = num_cnt
break
else:
num = num / 2
min_cnt += 1
print(min_cnt) |
s491307147 | p03494 | u907549201 | 1582419098 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3056 | 254 | input()
num_list = list(map(int, input().split()))
min_cnt = 0
for num in num_list:
min_cnt = 0
while True:
if num % 2 == 1:
if num_cnt < min_cnt: max_cnt = num_cnt
break
else:
num = num / 2
min_cnt += 1
print(min_cnt) |
s441688512 | p03494 | u907549201 | 1582418826 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 288 | n = int(input())
max_cnt = 0
num_list = []
for i in range(n):
num_list.append(int(input()))
for num in num_list:
num_cnt = 0
while True:
if num % 2 == 1:
if num_cnt > max_cnt: max_cnt = num_cnt
break
else:
num = num / 2
num_cnt += 1
print(max_cnt)
|
s178455748 | p03494 | u907549201 | 1582418772 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 289 | n = int(input())
max_cnt = 0
num_list = []
for i in range(n):
num_list.append(int(input()))
for num in num_list:
num_cnt = 0
while True:
if num % 2 == 1:
if num_cnt > max_cnt: max_cnt = num_cnt
break
else:
num = num / 2
num_cnt += 1
print(max_cnt)
|
s597747796 | p03494 | u814265211 | 1582247232 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38384 | 162 | import numpy as np
n = int(input())
a = np.array([int(i) for i in input().split()])
ans = 0; n = 2
while (a % n == 0).all():
n *= 2
ans += 1
print(ans) |
s128470644 | p03494 | u709679133 | 1581992790 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | N = input()
A = list(map(int,input()))
ans=float("inf")
for i in A:
ans = min(ans, len(bin(i)) - bin(i).rfind("1") - 1)
print(ans)
|
s789690922 | p03494 | u706433263 | 1581968245 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 310 | a=int(input())
N=list(map(int,input.split())
m=0
def check(data):
for i in range (a):
if not N[i]%2==0:
return False
break
return True
while check(N):
for j in range(a):
N[j]=N[j]/2
m+=1
print (m) |
s577473640 | p03494 | u022979415 | 1581961357 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 361 | from math import gcd
from functools import reduce
def main():
n = int(input())
numbers_gcd = reduce(gcd, list(map(int, input().split())))
answer = 0
while numbers_gcd > 0:
if numbers_gcd % 2:
break
else:
numbers_gcd //= 2
answer += 1
print(answer... |
s724677646 | p03494 | u767995501 | 1581916544 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 162 | 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)) |
s364997013 | p03494 | u849029577 | 1581809804 | Python | PyPy3 (2.4.0) | py | Runtime Error | 177 | 39664 | 235 | n = int(input())
a = list(map(int, input().split()))
l = []
for i in a:
count = 0
for j in range(1, 30):
if i%(2**j) == 0:
count += 1
else:
l.append(count)
break
print(min(l)) |
s423740644 | p03494 | u849029577 | 1581809595 | Python | PyPy3 (2.4.0) | py | Runtime Error | 170 | 39664 | 235 | n = int(input())
a = list(map(int, input().split()))
l = []
for i in a:
count = 0
for j in range(1, 20):
if i%(2**j) == 0:
count += 1
else:
l.append(count)
break
print(min(l)) |
s643445200 | p03494 | u849029577 | 1581807954 | Python | PyPy3 (2.4.0) | py | Runtime Error | 180 | 39152 | 235 | n = int(input())
a = list(map(int, input().split()))
l = []
for i in a:
count = 0
for j in range(1, 11):
if i%(2**j) == 0:
count += 1
else:
l.append(count)
break
print(min(l)) |
s744045512 | p03494 | u849029577 | 1581807593 | Python | PyPy3 (2.4.0) | py | Runtime Error | 176 | 38768 | 217 | n = int(input())
a = list(map(int, input().split()))
l = []
for i in a:
count = 0
for j in range(1, 10):
if i%(2**j) == 0:
count += 1
else:
l.append(count)
print(min(l)) |
s575232183 | p03494 | u940516059 | 1581542375 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 260 | A = [int(x) for x in input().split()]
N = int(input())
flag = True
count=0
while(flag):
for i in range(N):
if A[i]%2 == 1 :
flag=False
break
else:
A[i] /= 2
if flag:
count += 1
print(count)
|
s192439758 | p03494 | u317710033 | 1581453466 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 239 | a = input()
b = input()
count = 0
numbers = list(map(int, b.split()))
def calicurate():
for n in numbers:
if n%2 ==0:
n = n/2
else:
break
for i in calicurate():
numbers.calicurate(i)
count += 1
print(count)
|
s792118213 | p03494 | u826771152 | 1581221883 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 391 | n = int(input())
array = mat(int, input().split)
def shift_only(array):
tmp = []
counter = 0
while True:
flag = True
# 全て偶数かを確認
for num in array:
if num%2 != 0:
flag = False
if flag == False:
break
array = [i/2 for i in array]
... |
s885648623 | p03494 | u826771152 | 1581221774 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 400 | n = int(input())
array = [int(input()) for i in range(n)]
def shift_only(array):
tmp = []
counter = 0
while True:
flag = True
# 全て偶数かを確認
for num in array:
if num%2 != 0:
flag = False
if flag == False:
break
array = [i/2 for i in... |
s793165535 | p03494 | u826771152 | 1581221630 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 382 | n = int(input())
array = [int(input()) for i in range(n)]
def shift_only(array):
tmp = []
counter = 0
while True:
flag = True
# 全て偶数かを確認
for num in array:
if num%2 != 0:
flag = False
if flag == False:
break
array = [i/2 for i in... |
s516426964 | p03494 | u942774736 | 1581189524 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 116 | 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++
print(cnt) |
s613818141 | p03494 | u265118937 | 1580931125 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 2940 | 208 | n = int(input())
A = list(map(int, input().split()))
count = 0
while True:
for i in range(n):
if (A[i] % 2 == 1) or (A[i] == 0):
break
A[i] = A[i] // 2
s += 1
print(s)
|
s655005534 | p03494 | u265118937 | 1580931053 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 2940 | 212 | n = int(input())
A = list(map(int, input().split()))
count = 0
while True:
for i in range(n):
if (A[i] % 2 == 1) or (A[i] == 0):
break
A[i] = A[i] // 2
s += 1
print(count)
|
s816271882 | p03494 | u265118937 | 1580930771 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 255 | n = int(input())
A = list(map(int, input().split()))
count = 0
while True:
for i in range(n):
if (A[i] % 2 == 1) or (A[i] == 0):
break
elif:
A[i] = A[i] // 2
s += 1
continue
print(count)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.