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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s493499566 | p03494 | u263044948 | 1566285866 | Python | Python (3.4.3) | py | Runtime Error | 153 | 12508 | 137 | import numpy as np
n=int(input())
a=[map(int, input().split())]
b=np.array(a)
c=0
while all(b%2==0):
b=b/2
c += 1
print(c) |
s250245856 | p03494 | u286943165 | 1566251777 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 233 | 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]=0.5*a[i]
if a[i]%2=1:
break
else:
continue
break
h=f-1
print("h")
|
s046698084 | p03494 | u286943165 | 1566251638 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 224 |
a = list(map(int,input().split()))
x=len(a)
i=0
for k in range 1000000000:
i=i+1
for i in range x:
a[i]=0.5*a[i]
if a[i]%2=1:
break
else:
continue
break
h=i-1
print("h")
|
s542841088 | p03494 | u286943165 | 1566251588 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 231 | s=input()
a = list(map(int,input().split()))
x=len(a)
i=0
for k in range 1000000000:
i=i+1
for i in range x:
a[i]=0.5*a[i]
if a[i]%2=1:
break
else:
continue
break
h=i-1
print(h)
|
s795311716 | p03494 | u286943165 | 1566251533 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 233 | s=input()
a = list(map(int,input().split()))
x=len(a)
i=0
for k in range 1000000000:
i=i+1
for i in range x:
a[i]=0.5*a[i]
if a[i]%2=1:
break
else:
continue
break
h=i-1
print("h")
|
s995025613 | p03494 | u958973639 | 1566189110 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 213 | a=input()
b=input().split()
l=[int(i) for i in b]
cnt=[0 for i in range(a)]
for i in range(a):
while l[i]%2==0:
cnt[i]+=1
l[i]=l[i]/2
if l[i]%2==1:
break
print(min(cnt)) |
s201000032 | p03494 | u974935538 | 1566170876 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 197 | def how_many_times_divisible(n):
ans = 0
while n % 2 == 0:
n /= 2
ans += 1
return ans
n = int(input())
a = map(int, input().split())
ans = min(map(how_many_times_divisible, a))
print ans |
s227895844 | p03494 | u643714578 | 1566152371 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 142 | N=int(input())
a=list(map(int,input().split()))
b=[0,0,0]
for i in range(N):
while a[i]%2==0:
a[i]=int(a[i]/2)
b[i]+=1
print(min(b)) |
s890463501 | p03494 | u802963389 | 1566049306 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 138 | 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]
ans += 1
print(ans) |
s285507051 | p03494 | u731362892 | 1565939005 | Python | PyPy3 (2.4.0) | py | Runtime Error | 163 | 38256 | 144 | 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) |
s931772262 | p03494 | u126887629 | 1565901257 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 35 | n = input()
for n:
a[n] = input() |
s466593592 | p03494 | u665038048 | 1565901187 | Python | Python (3.4.3) | py | Runtime Error | 73 | 3896 | 168 | 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)) |
s015666011 | p03494 | u849317024 | 1565843490 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 160 | 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) |
s863072368 | p03494 | u849317024 | 1565843434 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 160 | 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) |
s064854107 | p03494 | u024768467 | 1565842210 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 3060 | 336 | # -*- 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) |
s957821137 | p03494 | u849622363 | 1565822584 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 247 | 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) |
s315143612 | p03494 | u791527495 | 1565820265 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 201 | 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) |
s818610626 | p03494 | u791527495 | 1565820219 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 198 | 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) |
s566789638 | p03494 | u791527495 | 1565820147 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 195 | 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) |
s809892646 | p03494 | u791527495 | 1565820129 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 196 | 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) |
s864683988 | p03494 | u313994303 | 1565811531 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 188 | 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)
|
s042327075 | p03494 | u811068179 | 1565811500 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 188 | 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) |
s523242892 | p03494 | u313994303 | 1565811498 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 188 | 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)
|
s245521488 | p03494 | u811068179 | 1565811253 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 188 | 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) |
s463264562 | p03494 | u811068179 | 1565811124 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3060 | 188 | 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) |
s311494005 | p03494 | u867848444 | 1565799378 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 130 | n=input()
s=list(input())
sp=0
for i in int(n):
if s[i]%2==0:
sp+=1
continue
else:
break
print(sp) |
s704151780 | p03494 | u966508131 | 1565750311 | Python | PyPy3 (2.4.0) | py | Runtime Error | 171 | 38256 | 147 | 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)
|
s127456490 | p03494 | u966508131 | 1565750262 | Python | PyPy3 (2.4.0) | py | Runtime Error | 170 | 38256 | 146 | 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)
|
s254122877 | p03494 | u143903328 | 1565721353 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 198 | 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)
|
s369708207 | p03494 | u463898034 | 1565708326 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 344 | 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
... |
s048678425 | p03494 | u401077816 | 1565659390 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | 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) |
s094202689 | p03494 | u134243444 | 1565629669 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | 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)
|
s542359462 | p03494 | u155687575 | 1565492520 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 245 | 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) |
s201887541 | p03494 | u238200649 | 1565449862 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 291 | 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) |
s844794482 | p03494 | u238200649 | 1565449496 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 286 | 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) |
s980304069 | p03494 | u238200649 | 1565449249 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 287 | 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) |
s935366841 | p03494 | u238200649 | 1565449069 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 286 | 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) |
s397201926 | p03494 | u238200649 | 1565448529 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 273 | 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) |
s258856462 | p03494 | u087474779 | 1565323436 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 290 | 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)) |
s227389347 | p03494 | u248192265 | 1565320364 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 137 | 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) |
s510740783 | p03494 | u248192265 | 1565319521 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | N = int(input())
A = int(input())
a = 0
for i in A:
if A%2 == 0:
a += 1
else:
brake:
print a |
s119647305 | p03494 | u878024225 | 1565298947 | Python | PyPy3 (2.4.0) | py | Runtime Error | 181 | 38256 | 348 | 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... |
s270421150 | p03494 | u401077816 | 1565193173 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | 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) |
s039398458 | p03494 | u482019060 | 1565141785 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 339 | 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 += ... |
s695436754 | p03494 | u482019060 | 1565141728 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 316 | 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) |
s582741175 | p03494 | u482019060 | 1565141677 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 294 |
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) |
s146093626 | p03494 | u482019060 | 1565140662 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 267 | 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) |
s651370148 | p03494 | u482019060 | 1565140617 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 265 | 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) |
s585746452 | p03494 | u482019060 | 1565140569 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 269 | 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) |
s452379995 | p03494 | u482019060 | 1565140543 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 269 | 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) |
s597719286 | p03494 | u482019060 | 1565140478 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 234 | 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) |
s014928428 | p03494 | u482019060 | 1565140421 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 234 | 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) |
s817607229 | p03494 | u649591440 | 1565058856 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 295 | 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)
|
s464169497 | p03494 | u649591440 | 1565058631 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 302 | 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) |
s320909031 | p03494 | u987143553 | 1564951485 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 429 | 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
... |
s317048506 | p03494 | u987143553 | 1564951275 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 421 | 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... |
s572193557 | p03494 | u987143553 | 1564951106 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 390 | 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:
c... |
s876435329 | p03494 | u339515914 | 1564928351 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 383 | 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 * 5... |
s325495879 | p03494 | u908763441 | 1564884454 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 176 | 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) |
s690084659 | p03494 | u908763441 | 1564883169 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 160 | 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) |
s719336208 | p03494 | u506858457 | 1564881948 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 150 | 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) |
s061246737 | p03494 | u506858457 | 1564881869 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 152 | 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) |
s803949582 | p03494 | u852517668 | 1564869434 | Python | PyPy3 (2.4.0) | py | Runtime Error | 168 | 38256 | 176 | 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) |
s282085797 | p03494 | u160659351 | 1564843584 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 155 | 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) |
s483269546 | p03494 | u729217226 | 1564708452 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 155 | 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) |
s340210370 | p03494 | u177067177 | 1564625285 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 150 | 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)
|
s723945901 | p03494 | u177067177 | 1564624978 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 150 | 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)
|
s436628664 | p03494 | u333190709 | 1564402287 | Python | PyPy3 (2.4.0) | py | Runtime Error | 168 | 38256 | 189 | 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) |
s837275037 | p03494 | u626337957 | 1564356270 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 228 | 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)
|
s103575895 | p03494 | u062314674 | 1564335828 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 254 | 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) |
s431758018 | p03494 | u261082314 | 1564308721 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | 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) |
s412700272 | p03494 | u344262071 | 1564177327 | Python | PyPy3 (2.4.0) | py | Runtime Error | 170 | 38384 | 235 | 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)
|
s985313832 | p03494 | u344262071 | 1564177244 | Python | PyPy3 (2.4.0) | py | Runtime Error | 164 | 38256 | 231 | 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)
|
s015104816 | p03494 | u815797488 | 1563999747 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 173 | 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) |
s530405513 | p03494 | u600402037 | 1563971113 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 223 | 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) |
s026583887 | p03494 | u815797488 | 1563951099 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 205 | 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 |
s091676645 | p03494 | u815797488 | 1563951064 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 207 | 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 |
s556251053 | p03494 | u815797488 | 1563951038 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 205 | 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 |
s545036041 | p03494 | u815797488 | 1563950994 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 205 | 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 |
s331640452 | p03494 | u815797488 | 1563950934 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 205 | 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 |
s341612973 | p03494 | u240055120 | 1563760137 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 159 | 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
|
s292460292 | p03494 | u240055120 | 1563760077 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 167 | 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
|
s004997887 | p03494 | u656572785 | 1563655680 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 513 | #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... |
s397321188 | p03494 | u991087410 | 1563552329 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 221 | 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) |
s477549456 | p03494 | u282657760 | 1563222882 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 149 | 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)) |
s734893541 | p03494 | u281216592 | 1563054819 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 278 | 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)
|
s449026255 | p03494 | u829393411 | 1563046250 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 224 | 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) |
s095440276 | p03494 | u829393411 | 1563045784 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 226 | 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) |
s301639900 | p03494 | u829393411 | 1563045559 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 221 | 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) |
s707716916 | p03494 | u170295204 | 1562856799 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 199 | # -*- 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)) |
s072684452 | p03494 | u170295204 | 1562856703 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 226 | # -*- 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)) |
s436643528 | p03494 | u170295204 | 1562855825 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 209 | # -*- 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) |
s118654756 | p03494 | u170295204 | 1562855752 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 199 | # -*- 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)) |
s212649602 | p03494 | u170295204 | 1562855422 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 199 | # -*- 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)) |
s983166748 | p03494 | u170295204 | 1562855375 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 201 | # -*- 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)) |
s388699851 | p03494 | u170295204 | 1562855304 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 211 | # -*- 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)) |
s054121645 | p03494 | u170295204 | 1562855272 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 209 | # -*- 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)) |
s614794617 | p03494 | u170295204 | 1562854563 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 199 | # -*- 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)) |
s724200520 | p03494 | u543569321 | 1562681208 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 316 | 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) |
s674622209 | p03494 | u769739808 | 1562655399 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 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) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.