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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s854009579 | p03494 | u561478555 | 1597460261 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8936 | 203 | a = int(input()) // 値の数
b = list(map(int, input().split()))
min = 100000
for i in range(a):
try = 0
while(b[i]%2 == 0):
b[i] = b[i] / 2
try += 1
if try < min:
min = try
print(min) |
s828660805 | p03494 | u561478555 | 1597460170 | Python | Python (3.8.2) | py | Runtime Error | 22 | 8816 | 203 | a = int(input()) // 値の数
b = list(map(int, input().split()))
min = 100000
for i in range(a):
try = 0
while(b[i]%2 != 0):
b[i] = b[i] / 2
try += 1
if try < min:
min = try
print(min) |
s545287812 | p03494 | u561478555 | 1597459970 | Python | Python (3.8.2) | py | Runtime Error | 22 | 8900 | 230 | a = int(input()) // 数の個数
b = list(map(int, input().split())) // それぞれの値
min = 100000
for i in range(a):
n = 0
try = 0
while(2**n <= b[i]):
try += (b[i] / 2**n)
if try < min :
min = try
print(min) |
s929957546 | p03494 | u561478555 | 1597459707 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9160 | 173 | a = int(input()) // 数の個数
b = list(map(int, input().split())) // それぞれの値
min = 100000
for i in range(a):
if (min > (b[i]/2)):
min = b[i]/2
print(min) |
s813220997 | p03494 | u561478555 | 1597459419 | Python | Python (3.8.2) | py | Runtime Error | 20 | 9084 | 214 | a = input() // 数の個数
b = list(map(int, input().split())) // それぞれの値
count = 0
while(1):
for i in range(a):
if b[i] % 2 == 1:
break;
else :
b[i] /= 2
count += 1
print(count) |
s924478620 | p03494 | u561478555 | 1597459281 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9020 | 216 | a = input() // 数の個数
b = list(map(int, input().split())) // それぞれの値
count = 0
while(1):
for i in range(a):
if b[i] % 2 == 1:
print("0")
return 0;
b /= 2
count += 1
print(count) |
s189270452 | p03494 | u190866453 | 1597359891 | Python | Python (3.8.2) | py | Runtime Error | 20 | 8956 | 168 | x = int(input())
y = list(map(int, input().split()))
count = 0
for i in y:
if i % 2 = 0:
y[i] == i % 2
count += 1
else:
pass
|
s748661442 | p03494 | u321871080 | 1597181631 | Python | PyPy3 (7.3.0) | py | Runtime Error | 85 | 74752 | 219 | num_count = input()
nums = map(int, input().split(' '))
result = 0
while True:
for num in nums:
if num % 2 != 0:
print(result)
return
result+=1 |
s318729655 | p03494 | u344030307 | 1597074652 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9028 | 209 | n = int(input())
a = list(map(int, input().split()))
t = True
x = 0
while T == True:
x +=1
for i in a:
if i%2 == 0:
a = list(map(lambda x:x/2, a))
else:
t = False
print(x)
|
s550390960 | p03494 | u556594202 | 1596919334 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9132 | 108 | n = int(input())
a = np.array(list(map(int,input().split())))
count = 0
while 1:
count+=1
print(count)
|
s870722240 | p03494 | u556594202 | 1596918655 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8944 | 109 |
n = int(input())
a = np.array(list(map(int,input().split())))
count = 0
while 1:
count+1
print(count)
|
s272651516 | p03494 | u556594202 | 1596918629 | Python | Python (3.8.2) | py | Runtime Error | 21 | 8936 | 118 |
n = int(input())
a = np.array(list(map(int,input().split())))
count = 0
while 1:
count+1
a=a/2
print(count)
|
s380325845 | p03494 | u729679908 | 1596903024 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9152 | 127 | import math
N = input()
a =list(map(int,input().split()))
for i in a:
B = min(len(bin(i)) - bin(i).rfind("1") - 1)
print(B) |
s555047698 | p03494 | u729679908 | 1596900905 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9104 | 151 | import math
N = input().int()
A = map(int,input().split())
B = map(bin,A)
def Y(x):
y = len(x)-x.rfind("1")-1
return y
C = map(Y,B)
print(min(C))
|
s901599070 | p03494 | u729679908 | 1596900328 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8952 | 138 | N = input().int()
A = map(int,input().split())
B = map(bin,A)
def Y(x):
y = len(x)-x.rfind("1")-1
return y
C = map(Y,B)
print(min(C))
|
s860653629 | p03494 | u738265085 | 1596896978 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9060 | 171 | N = int(input())
a = []
for i in range(N):
b = int(input())
a.append(b)
c = 0
for an in a:
if not an % 2 == 0:
print(0)
break
else:
c +=1
print(c) |
s442447082 | p03494 | u869790980 | 1596637864 | Python | PyPy2 (7.3.0) | py | Runtime Error | 507 | 84244 | 186 | n = int(raw_input())
ais = map(int, raw_input().split())
c = 0
while(True):
if all([ai%2==0 for ai in ais ]):
ais = [ai/2 for ai in ais]
c +=1
else:
break
print c |
s122421051 | p03494 | u914883924 | 1596428934 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9064 | 112 | N=int(input())
an=list(map(int,input().split()))
n=0
for i in range(N):
if an%2==0:
n+=1
print(an/2) |
s282520278 | p03494 | u911263794 | 1596389608 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9144 | 438 | N = int(input())
x = map(int,input().split())
count=0
check = 0
NEW_x=[]
def roop(N,x):
global check
global NEW_x
for i in x:
if i%2==0:
check +=1
s = i//2
NEW_x.append(s)
else:
NEW_x.append(s)
roop(N,x)
while True:
x = NEW_x
N... |
s127183100 | p03494 | u061140245 | 1596115605 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9136 | 324 | n = input()
a_list = input().split(" ")
def count_divide(number, max_cnt=-1):
count = 0
mod = -1
while mod != 0:
q, mod = divmod(number)
count += 1
if max_cnt != -1 & count >= max_cnt:
return max_cnt
return count
result = -1
for a in a_list:
result = count_divide(int(a), result)
print(resu... |
s697622201 | p03494 | u641641671 | 1595816310 | Python | Python (3.8.2) | py | Runtime Error | 28 | 9368 | 516 | import copy
kaisu = int(input())
s_suji_list = input().split(' ')
suji_list = []
count = 0
cotinule_flg = True
for suji in s_suji_list:
i_suji = int(suji)
if suji % 2 == 0:
suji_list.append(suji / 2)
else:
continue_flg = False
break
count = 1
while(continue_flg):
temp_list = copy.copy(suji_lis... |
s391901355 | p03494 | u752552310 | 1595813296 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8980 | 144 | n = input()
A = list(map(int, input().split()))
counts = 0
while all(a%2==0 for a in A):
A = [a/2 for a in A]
counts += 1
print(counts) |
s999438338 | p03494 | u752552310 | 1595813245 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8768 | 143 | n = input()
A = list(map(int, input().split())
counts = 0
while all(a%2==0 for a in A):
A = [a/2 for a in A]
counts += 1
print(counts) |
s319156417 | p03494 | u752552310 | 1595813172 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8956 | 145 | n = input()
A = list(map(int, input().split())
counts = 0
while all(a%2==0 for a in A):
texts = [a/2 for a in A]
counts += 1
print(counts) |
s040495082 | p03494 | u641641671 | 1595811496 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9372 | 512 | import copy
kaisu = int(input())
s_suji_list = input().split(' ')
suji_list = []
count = 0
cotinule_flg = true
for suji in s_suji_list:
i_suji = int(suji)
if suji % 2 == 0:
suji_list.append(suji / 2)
else:
continue_flg = false
break
count = 1
while(continue_flg):
temp_list = copy.copy(suji_list)
... |
s169842435 | p03494 | u016881126 | 1595696943 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9124 | 409 | import sys
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
read = sys.stdin.buffer.read
sys.setrecursionlimit(10 ** 7)
INF = float('inf')
N = int(input())
A = list(map(int, input().split()))
ans = INF
for a in A:
cnt = 0
while True:
q, mod = divmod(a, 2)
if mod !=... |
s831804857 | p03494 | u788260274 | 1595467885 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8628 | 375 | from sys import stdin
n = stdin.readline().rstrip()
a = [int(x) for x in stdin.readline().rstrip().split()]
count = 0
b = a[0]
while True:
if b % 2 == 1: break
b = b//2
count = count + 1
minc = count
for b in a[1:]:
count = 0
while True:
if b % 2 == 1: break
b = b//2
count ... |
s568763427 | p03494 | u665651444 | 1595459312 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9016 | 196 | N = input()
n=0
l=[]
list = [input() for i in range(int(N))]
for i in list:
global n
while i % 2 == 0:
i = i//2
n +=1
else:
l.append(n)
print(max(l))
|
s151951857 | p03494 | u507457124 | 1594845299 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9088 | 290 | INPUT = [input() for i in range(2)]
INPUT = list(map(int, INPUT))
def check_even(l):
return sum([i % 2 for i in INPUT]) == 0
check_even(INPUT)
count = 0
while True:
if check_even(INPUT):
INPUT = [i / 2 for i in INPUT]
count+=1
else:
break
print(count) |
s318385051 | p03494 | u637289184 | 1594417351 | Python | PyPy3 (7.3.0) | py | Runtime Error | 112 | 74748 | 275 | N = int(input())
A=[]
for i in range(N):
A.append(int(input()))
c=0
while(True):
b=0
for i in A:
if i%2==0:
b=b+1
if b==N:
for j in range(N):
A[j]=A[j]/2
c=c+1
if b!=N:
break
print(c) |
s807856154 | p03494 | u544165032 | 1594060224 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9120 | 199 | N = int(input())
A = list(map(int, input().split()))
ans = []
for i in range(N):
cnt = 0
while A[i] % 2 == 0:
A[i] = A[i] / 2
cnt = cnt + 1
ans.append(cnt)
print(min(sns)) |
s097899689 | p03494 | u931769295 | 1593533170 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9048 | 198 | N=int(input())
A=list(map(int, input().split()))
count=0
while True:
K = True
for i in range(N):
if A[i] % 2 == 1:
K = False
A[i] /= 2
if not K:
break
count += 1
print(ans) |
s267418612 | p03494 | u514612296 | 1593315650 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8928 | 287 | n = input()
number_list = map(int, input().split())
count = 0
even = True
while even:
for i, a in enumerate(number_list):
if a % 2 != 0:
even = False
break
else:
number_list[i] = a / 2
if even:
count += 1
print(count) |
s219140690 | p03494 | u514612296 | 1593315208 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9052 | 283 | n = input()
number_list = map(int, input().split())
count = 0
even = True
while even:
for i, a in enumerate(number_list):
if a % 2 != 0:
even = False
else:
number_list[i] = a / 2
if even:
count += 1
print('{}'.format(count))
|
s305228474 | p03494 | u514612296 | 1593315031 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9032 | 270 | n = input()
number_list = map(int, input().split())
count = 0
even = True
while even:
for i, a in enumerate(number_list):
if a % 2 != 0:
even = False
else:
number_list[i] = a / 2
if even:
count += 1
print(count)
|
s122560738 | p03494 | u869265610 | 1593167432 | Python | Python (3.8.2) | py | Runtime Error | 111 | 26936 | 253 | import numpy as num
N = int(input())
A = list(map(int,input().split()))
ary = num.array(A)
b = len(A)
S=1
ans = 0
while True:
for i in range(b):
S*=A[i]
if S %2 == 0:
ans+=1
ary = ary/2
ary=A
S=1
else:
print(ans)
exit() |
s665354619 | p03494 | u246223576 | 1593137572 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8976 | 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) |
s585533958 | p03494 | u944886577 | 1592945146 | Python | Python (3.8.2) | py | Runtime Error | 21 | 8968 | 127 | a=input()
b=map(int,input().split())
ans=[]
max_b=max(b)
d=0
for i in b
while i%2=0
i=i/2
d+=1
ans.append(d)
print(ans) |
s204520152 | p03494 | u944886577 | 1592943508 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8888 | 131 | a=input()
b=map(int,input().stlip())
ans=0
while True:
for s in b
if b[s]%2!=0
break
else:
b[s]=b[s]/2
ans+=1
print(ans) |
s945977010 | p03494 | u081714930 | 1592613971 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8852 | 192 | n=input()
n_list=list(map(int,input().split()))
counter=0
while all(i%2==0 for i in n_list):
n_list=[i/2 for i in n_list]
#n_list=[i/2 for i in n_list]
counter=+1
print(counter) |
s655000385 | p03494 | u316095188 | 1592376336 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 130 | n = input()
s = list(map(int, input.split()))
ans = 0
while all(a%2==0 for a in s):
ans +=1
s = [a/2 for a in s]
print(ans)
|
s937734742 | p03494 | u316095188 | 1592376229 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | n = input()
s = list(map(int, input.split()))
ans = 0
while all(a%2==0 for a in s):
ans +=1
for a in s:
s = a/2
print(ans)
|
s057909779 | p03494 | u316095188 | 1592376146 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 134 | n = input()
s = list(map(int, input.split()))
ans = 0
while all(a%2==0, for a in s):
ans +=1
for a in s:
s = a/2
print(ans)
|
s050251676 | p03494 | u316095188 | 1592376088 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 134 | n = input()
s = list(map(int, input.split()))
ans = 0
while all(a%2==0, for a in s):
ans +=1
for a in s:
s = s/2
print(ans)
|
s863670717 | p03494 | u316095188 | 1592375959 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 137 | n = input()
s = list(map(int, input.split()))
ans = 0
while all(a%2==0, for a in s):
ans +=1
for a in s:
a = a/2
print(ans)
|
s629896550 | p03494 | u316095188 | 1592375892 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | n = imput()
s = list(map(int, inpit.split()))
ans = 0
while all(a%2==0, for a in s):
ans +=1
for a in s:
a = a/2
print(ans) |
s183114107 | p03494 | u149551680 | 1592173828 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 190 | N = int(input())
l = [int(input()) for _ in range(N)]
count = 0
while all([a == 0 for a in list(map(lambda x: x%2, l))]):
l = list(map(lambda x: x/2, l))
count += 1
print(count) |
s924104782 | p03494 | u149551680 | 1592173529 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 198 | N = int(input().strip())
l = [_ for _ in int(input().strip())]
count = 0
while all([a == 0 for a in list(map(lambda x: x%2, l))]):
l = list(map(lambda x: x/2, l))
count += 1
print(count) |
s298338610 | p03494 | u756761345 | 1592160488 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 126 | input()
A = list(map(int, input()))
count = 0
while all(a % 2 for a in A):
A = [a/2 for a in A]
count +=1
print(count) |
s547786860 | p03494 | u106095117 | 1592152879 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3056 | 142 | input()
A = list(map(int, input().split()))
count = 0
while all(a % 2 == 0 for i in A):
A = [a/2 for a in A]
count += 1
print(count)
|
s217480423 | p03494 | u035907840 | 1592145560 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 226 | N = int(input())
A = range(N)
for i in range(N):
A[i] = int(input())
A2nums = [0] * N
for i in range(N):
while True:
A[i] /= 2
if A[i] % 2 == 0:
A2num[i] += 1
else:
break
print(min(A2num)) |
s026034751 | p03494 | u863397945 | 1592012519 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 141 | a = input()
A = list(map(int, input().split()))
count = 0
for all i in range(a):
while A[a]%2==0:
count = count +1
print(count) |
s187261208 | p03494 | u868982936 | 1591919603 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 144 | import numpy as np
input()
x = np.array(input().split(), dtype=np.int32)
ans = 0
while ( x % 2 == 0 ).all():
x //= 2
ans += 1
print(ans) |
s801594241 | p03494 | u868982936 | 1591919460 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 146 | import numpy as np
input()
x = np.array(input().split(), dtype=np.int32)
ans = 0
while ( x % 2 == 0 ).all():
x //= 2
ans += 1
print(ans)
|
s454224338 | p03494 | u868982936 | 1591919420 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 148 | import numpy as np
input()
x = np.array(input().split(), dtype=np.int32)
ans = 0
while ( x % 2 == 0 ).all():
x //= 2
ans += 1
print(ans) |
s771836023 | p03494 | u708467207 | 1591893742 | Python | PyPy3 (2.4.0) | py | Runtime Error | 160 | 38256 | 219 | input()
s = list(map(int, input().split()))
cnt = 0
while True:
if len(n for n in s if n % 2 != 0) != 0:
print (cnt)
break
else:
s = list(map(lambda n: n / 2, s))
cnt = cnt + 1
|
s535787643 | p03494 | u708467207 | 1591893589 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38256 | 191 | input()
s = list(map(int, input().split()))
cnt = 0
while True:
if len(n for n in s if n % 2 != 0) != 0:
print (cnt)
break
else:
s = map(lambda n: n / 2, s)
|
s436769162 | p03494 | u667694979 | 1591730453 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 118 | N=int(input())
A=list(map(int,input().split()))
cnt=0
while True:
if A%2==0:
cnt+=1
else:
break
print(cnt) |
s716509702 | p03494 | u586305367 | 1591581917 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 821 | from typing import List
def is_odd(num):
return num % 2 != 0
def odd_in_list(num_list):
for num in num_list:
if is_odd(num):
return True
return False
def half(num):
return num / 2
def shift_only(num_list, counter):
if odd_in_list(num_list):
print('its over')
... |
s387923549 | p03494 | u586305367 | 1591581027 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 515 | from typing import List
def is_odd(num):
return num % 2 != 0
def odd_in_list(num_list):
for num in num_list:
if is_odd(num):
return True
return False
def half(num):
return num / 2
def shift_only(num_list, counter):
if odd_in_list(num_list):
return counter
els... |
s748389040 | p03494 | u586305367 | 1591580837 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 572 | from typing import List
def is_odd(num: int) -> bool:
return num % 2 != 0
def odd_in_list(num_list: List[int]) -> bool:
for num in num_list:
if is_odd(num):
return True
else:
return False
def half(num: int) -> int:
return num / 2
def shift_only(num_list, counter):
... |
s330707173 | p03494 | u586305367 | 1591580743 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 572 | from typing import List
def is_odd(num: int) -> bool:
return num % 2 == 0
def odd_in_list(num_list: List[int]) -> bool:
for num in num_list:
if is_odd(num):
return True
else:
return False
def half(num: int) -> int:
return num / 2
def shift_only(num_list, counter):
... |
s537309406 | p03494 | u586305367 | 1591580619 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 573 | from typing import List
def is_odd(num: int) -> bool:
return num % 2 == 0
def odd_in_list(num_list: List[int]) -> bool:
for num in num_list:
if is_odd(num):
return True
else:
return False
def half(num: int) -> int:
return num / 2
def shift_only(num_list, counter):
... |
s041176107 | p03494 | u364386647 | 1591578111 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38256 | 252 | def resolve():
N = int(input())
A = list(map(int, input().split()))
ans = 10**5
for a in A:
a = prime_factorize(a)
ans = min(ans, a.count(2))
if (ans == 10 ** 5):
ans = 0
print(ans)
return
resolve() |
s732021296 | p03494 | u439676056 | 1591565314 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 184 | import sys
input = sys.stdin.readline
N = input()
B = map(int, input().split())
answer = None
for i in B:
answer = min(answer, len(bin(i)) - bin(i).rfind("1") - 1)
print(answer)
|
s278591017 | p03494 | u629676123 | 1591561831 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 279 | N = input()
B = False
kaisu = 0
array = list(map(int,input().split()))
def calc(n):
return int(n) / 2
while not B:
for i in range(N):
if array[i]/2 == 1:
B = True
if not B:
array = map(calc, array)
kaisu += 1
else:
break
print(kaisu) |
s756995253 | p03494 | u629676123 | 1591561722 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 343 | import matplotlib
import matplotlib.pyplot as plt
import numpy as np
N = input()
B = False
kaisu = 0
array = map(int,input().split())
def calc(n):
return int(n) / 2
while not B:
for i in range(N):
if array[i]/2 == 1:
B = True
if not B:
array = map(calc, array)
kaisu += 1
else:
brea... |
s822728059 | p03494 | u629676123 | 1591561141 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 275 | N = input()
B = False
kaisu = 0
array = map(int,input().split())
def calc(n):
retuen n/2
while !B:
for i in range(N):
if array[i]/2 == 1:
B = True
if !B:
array = map(calc, array)
kaisu += 1
else:
break
print(kaisu)
|
s944103016 | p03494 | u629676123 | 1591561058 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 283 | N = input()
B = False
kaisu = 0
array = map(int,input().split())
def calc(n):
retuen n/2
while !B:
for i in range(N):
if array[i]/2 == 1:
B = True
if B == False:
array = map(calc, array)
kaisu += 1
else:
break
print(kaisu)
|
s986346224 | p03494 | u629676123 | 1591560919 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 281 | N = input()
B = False
kaisu = 0
array = map(int,input().split())
def calc(n):
retuen n/2
while B:
for i in range(N):
if array[i]/2 == 1:
B = True
if B == False:
array = map(calc ,array)
kaisu += 1
else:
break
print(kaisu)
|
s268775093 | p03494 | u629676123 | 1591560884 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 275 | N = input()
B = False
kaisu = 0
array = map(int,input().split())
while B:
for i in range(N):
if array[i]/2 == 1:
B = True
if B == False:
array = map(calc ,array)
kaisu += 1
else:
break
print(kaisu)
def calc(n):
retuen n/2
|
s104348733 | p03494 | u629676123 | 1591560812 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 273 | N = input()
B = False
kaisu = 0
array = map(int,input().split())
while !B:
for i in range(N):
if array[i]/2 == 1:
B = True
if B == False:
array = map(calc ,array)
kaisu++
else:
break
print(kaisu)
def calc(n):
retuen n/2
|
s275721812 | p03494 | u629676123 | 1591560792 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 275 | N = input()
B = False
kaisu = 0
array[] = map(int,input().split())
while !B:
for i in range(N):
if array[i]/2 == 1:
B = True
if B == False:
array = map(calc ,array)
kaisu++
else:
break
print(kaisu)
def calc(n):
retuen n/2
|
s393562655 | p03494 | u629676123 | 1591560743 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 279 | N = input()
B = False
kaisu = 0
array[] = map(int,input().split())
while !B:
for i in range(N):
if array[i]/2 == 1:
B = True
if B == False:
array[] = map(calc ,array[])
kaisu++
else:
break
print(kaisu)
def calc(n):
retuen n/2
|
s037878101 | p03494 | u629676123 | 1591560701 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 252 | N = input()
B = False
kaisu = 0
array[] = map(int,input().split())
while !B:
for i in range(N):
if array[i]/2 == 1:
B = True
if B == False:
array[] = map(calc ,array[])
kaisu++
else:
break
print(kaisu)
|
s271092791 | p03494 | u667694979 | 1591535282 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 217 | n=int(input())
A=list(map(int,input().split()))
a=False
count=0
while True:
for i in range(n):
if A[i]%2==1:
a=True
break
A[i]//=2
if a=True:
break
else:
count+=1
print(count) |
s926491310 | p03494 | u350093546 | 1591498691 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38256 | 184 | n=int(input())
a=list(map(int,input().split()))
ans=30
for i in a:
x=0
while True:
if i%2==1:
break
else:
x+=1
i=i//2
continue
ans=min(ans,x)
print(ans) |
s219308040 | p03494 | u088553842 | 1591409293 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 174 | n = int(input())
lst = map(str, input().split())
res = 0
while True:
for i in lst:
if int(i[-1]) % 2 == 1:
return res
lst = [int(j) / 2 for j in lst]
res += 1 |
s661937579 | p03494 | u816145694 | 1591320641 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 128 | input()
a = list(map(int,input().split()))
while all(i % 2 == 0 for i in a)
a = [i/2 for i in a]
count += 1
print(count) |
s906013896 | p03494 | u063614215 | 1590963943 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 457 | N = int(input())
num_list = [int(i) for i in input().split(' ')]
even_counter = 0
for n in range(N):
if num_list[n]%2 != 0:
print('0')
break
else:
even_counter += 1
if even_counter == N:
min_counter = float('inf')
for i in range(N):
num = num_list[i]
counter = 0
while nu... |
s017920713 | p03494 | u063614215 | 1590963784 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 457 | N = int(input())
num_list = [int(i) for i in input().split(' ')]
even_counter = 0
for n in range(N):
if num_list[n]%2 != 0:
print('0')
break
else:
even_counter += 1
if even_counter == N:
min_counter = float('inf')
for i in range(N):
num = num_list[i]
counter = 0
while nu... |
s585600082 | p03494 | u885627844 | 1590861460 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 134 | 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) |
s531049547 | p03494 | u268326928 | 1590629764 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 102 | ans=0
while(1):
try:
A=A /2
ans=ans+1
except ValueError as e:
print(ans)
break
|
s018670665 | p03494 | u423665486 | 1590621826 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38640 | 235 | def resolve():
n = int(input())
ws = [input() for _ in range(n)]
cnt = []
for w in ws:
if w in cnt:
print('No')
return
if len(cnt) and cnt[-1][-1] != w[-1]:
print('No')
return
cnt.append(w)
print('Yes')
resolve() |
s226073582 | p03494 | u294385082 | 1590455082 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 203 | n = int(input())
a = list(map(int,input().split()))
count = 0
for i in range(10**10):
for j in range(n):
if a[j]%2 != 0:
print(count)
exit()
else:
a[j] = a//2
count += 1
|
s984131577 | p03494 | u344065503 | 1590367697 | Python | PyPy3 (2.4.0) | py | Runtime Error | 178 | 38256 | 176 | n=int(input())
n=list(map(int,input().split()))
count=0
while True:
for i in range(n):
if n[i]%2!=0:
print(count)
exit()
n[i]//2
count+=1
print(count)
|
s766178693 | p03494 | u516494592 | 1590287223 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 315 | N = int(input())
A_list = [map(int, input().split())]
count = 0
while (True):
exist_odd = False
for i in range(N):
if A_list[i] % 2 != 0:
exist_odd = True
if exist_odd:
break
for i in range(N):
A_list[i] = A_list[i] / 2
count = count + 1
print(count) |
s585825017 | p03494 | u488178971 | 1590273359 | Python | Python (3.4.3) | py | Runtime Error | 36 | 5076 | 262 | import fractions
from functools import reduce
def gcd(*numbers):
return reduce(fractions.gcd, numbers)
def gcd_list(numbers):
return reduce(fractions.gcd, numbers)
tmp =gcd_list(A)
for i in range(100):
if tmp == 2**i:
print(i)
break |
s091324744 | p03494 | u441246928 | 1590028642 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 145 | N = int(input())
A = list(map(int,input().split()))
ans = 0
while all( a%2 == 0 for a in A ):
a = [ i/2 for i in a ]
ans += 1
print(ans)
|
s409796002 | p03494 | u441246928 | 1590028591 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 145 | N = int(input())
A = list(map(int,input().split()))
ans = 0
while all( A%2 == 0 for a in A ):
a = [ i/2 for i in a ]
ans += 1
print(ans)
|
s832235041 | p03494 | u163188822 | 1590026758 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 148 | (lambda f: int(input()) == print(min([f(f, i, 0) for i in list(map(int, input().split()))])))(lambda f, i, c: f(i // 2, c + 1) if i % 2 == 0 else c) |
s248129087 | p03494 | u023713088 | 1590004289 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 252 | n = input()
n = int(input())
a = list(map(int, input().split()))
count = 0
flag = True
while flag:
for i in range(n):
if a[i] %2 != 0:
break
else:
a[i] = a[i]//2
if flag == False:
break
count = count+1
print(count)
|
s137559355 | p03494 | u023713088 | 1590004046 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 284 | n = int(input())
a = list(map(int, input().split()))
count = 0
flag = True
while flag:
for i in range(n):
if a[i] % 2 != 0:
flag = False
if flag == False:
break
for i in range(n):
a[i] /= 2
count = count+1
print(count)
|
s884579496 | p03494 | u023713088 | 1590003842 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 278 | n = input()
a = list(map(int, input().split()))
count = 0
flag = True
while flag:
for i in range(n):
if a[i] % 2 != 0:
flag = False
if flag == False:
break
for i in range(n):
a[i] /= 2
count = count+1
print(count) |
s890344999 | p03494 | u023713088 | 1590003618 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 242 | n = input()
a = list(map(int, input().split()))
count = 0
flag = True
while flag:
for i in range(n):
if a[i] %2 != 0:
flag = False
else:
a[i] = a[i]//2
if flag == False:
break
count = count+1
print(count)
|
s879055543 | p03494 | u493130708 | 1589908106 | Python | PyPy3 (2.4.0) | py | Runtime Error | 175 | 38768 | 2916 | # -*- coding: utf-8 -*-
#############
# Libraries #
#############
import sys
input = sys.stdin.readline
import math
#from math import gcd
import bisect
from collections import defaultdict
from collections import deque
from functools import lru_cache
#############
# Constants #
#############
MOD = 10**9+7
INF = fl... |
s346354765 | p03494 | u493130708 | 1589906954 | Python | PyPy3 (2.4.0) | py | Runtime Error | 175 | 38768 | 2836 | # -*- coding: utf-8 -*-
#############
# Libraries #
#############
import sys
input = sys.stdin.readline
import math
#from math import gcd
import bisect
from collections import defaultdict
from collections import deque
from functools import lru_cache
#############
# Constants #
#############
MOD = 10**9+7
INF = fl... |
s441026571 | p03494 | u618373524 | 1589882609 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | n = int(input())
a = list(map(int,input().split()))
ans = 0
while all(A%2 == 0 for A in a):
a = (i/2 for i in a )
ans += 1
print(ans) |
s519985815 | p03494 | u618373524 | 1589882585 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | n = int(input())
a = list(map(int,input().split()))
ans = 0
while all(A%2 == 0 for A in a):
a = (i/2 for i in a )
ans += 1
print(ans) |
s393332486 | p03494 | u957390897 | 1589694008 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 224 | n = int(input())
aList = list(map(int, input().split()))
count = 0
while True:
flag = True
for i in range(n):
if aList[i] % 2 != 0:
flag = False
aList[i] /= 2
if flag = False:
break
count += 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.