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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s452127373 | p03494 | u040168862 | 1548114165 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 450 | def main(n, xs):
# type: (int, List[int]) -> None
even = lambda x: x % 2 == 0 # type: Callable[[int],bool]
allEven = lambda xs: all(map(even, xs)) # type: Callable[[List[int]],bool]
cnt = 0
while allEven(xs):
cnt = cnt + 1
xs = list(map(lambda x: x // 2, xs))
return
if __name__ ... |
s582240939 | p03494 | u572542887 | 1548042605 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 271 | n = int(input())
a = input().split(" ")
for i in range(100):
for j in range(len(a)):
if(int(a[j]) % 2 != 0):
break
else:
a[j] = int(a[j]) / 2
count += 1
else:
continue
break
print(count // len(a))
|
s127906830 | p03494 | u198758525 | 1547449639 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 91 | a = input()
ans = 0
for i in range(3):
if (a[i] == '1'):
ans += 1
print(ans)
|
s386818850 | p03494 | u127856129 | 1546670279 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 136 | a=int(input())
b=[]
count=0
for i in len(b):
if i%a!==0:
break
else:
i=i//a
count+=1
print(count//len(b))
|
s945493802 | p03494 | u371467115 | 1546654944 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 106 | n=int(input())
a=list(map(int,input().split()))
a=eval("+".join(str(a)))
l=0
while a%2==0:
l+=1
print(l) |
s727743651 | p03494 | u486448566 | 1546642305 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3188 | 348 | import sys
n = int(input())
a = list(map(input().split()))
bin_vals = [bin(val) for val in a]
bit_result = bin(0)
# 論理和
for r in bin_vals:
bit_result = bit_result | r
int_result = int(str(bit_result), 2)
count = 0
while True:
if int_result % 2 != 0:
break
int_result = int_result / 2
count = ... |
s811422878 | p03494 | u948986080 | 1546620393 | Python | PyPy3 (2.4.0) | py | Runtime Error | 169 | 38256 | 125 | N=int(input())
n=map(int,input().split(" "))
count=0
while all(a%2==0 for a in n):
n=[a//2 a in n]
count+=1
print(count)
|
s957295762 | p03494 | u948986080 | 1546619896 | Python | PyPy3 (2.4.0) | py | Runtime Error | 173 | 38512 | 163 | import sys
n=map(int,input().split(" "))
count=0
while(True):
for i,m to n:
if m%2==0:
n[i]=m
else:
print(count)
sys.exit()
count+=1
|
s098731106 | p03494 | u928784113 | 1544936473 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 192 | 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 |
s516474491 | p03494 | u928784113 | 1544936208 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 187 | # -*- coding: utf-8 -*-
N = int(input())
array = [map(int,input().split())]
n = 0
for i in range(N+1):
if array[i] % 2 == 0:
continue
else:
break
n = n+1
continue
print(n) |
s534445476 | p03494 | u077337864 | 1544578179 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 261 | N = int(input().strip())
A = list(map(int, input().strip().split()))
mindiv = -1
for a in range(A):
if mindiv == -1:
mindiv = bin(a) - bin(a).rstrip('0')
else:
tmp = bin(a) - bin(a).rstrip('0')
if tmp < mindiv:
mindiv = tmp
print(mindiv) |
s289763156 | p03494 | u464995425 | 1543093688 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 304 | import sys
def main():
N = int(input())
A = list(map(int, input().split()))
t = 0
while True:
for i in range(N):
if A[i] % 2 == 1:
break
sys.exit
else:
A[i] = A[i]/2
t += 1
main() |
s059946780 | p03494 | u464995425 | 1543093219 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 181 | n=int(input())
dat=list(map(int, input().split()))
re = 0
flag=True
while (flag==True):
for e in dat:
e=e/2
re = re+1
break
print(re) |
s384509945 | p03494 | u464995425 | 1543092949 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 224 | n=int(input())
dat=list(map(int, input().split()))
re = 0
flag=True
while (flag==True):
for e in dat:
if (e%2==1):
flag=False
break
re = re+1
print(re) |
s685723213 | p03494 | u464995425 | 1543092150 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 260 | n=int(input())
dat=list(map(int, input().split()))
re = 0
flag=True
while (flag==True):
for e in dat:
if (e%2==1):
flag=False
break
else:
e = e/2
re = re+1
print(re) |
s461901185 | p03494 | u464995425 | 1543091813 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 258 | n=int(input())
dat=list(map(int, input().split()))
re = 0
flag=True
while (flag==True):
for e in dat:
if e%2==1:
flag=False
break
else:
e = e/2
re = re+1
print(re) |
s178204558 | p03494 | u464995425 | 1543091713 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 217 | n=int(input())
dat=list(map(int, input().split()))
re = 0
while (True):
for e in dat:
if e%2==1:
break
else:
e = e/2
re = re+1
print(re) |
s926991123 | p03494 | u464995425 | 1543091638 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3188 | 248 | n=int(input())
dat=list(map(int, input().split()))
re = 0
while (True):
for e in dat:
if e%2==1:
break
return re
else:
e = int(e/2)
re = re+1
print(re) |
s227183879 | p03494 | u464995425 | 1543091531 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 243 | n=int(input())
dat=list(map(int, input().split()))
re = 0
while (True):
for e in dat:
if e%2==1:
break
return re
else:
e = e/2
re = re+1
print(re) |
s336377784 | p03494 | u464995425 | 1543091468 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 221 | n=int(input())
dat=list(map(int, input().split()))
re = 0
while (True):
for e in dat:
if e%2==1:
return re
else:
e = e/2
re = re+1
print(re) |
s511068968 | p03494 | u464995425 | 1543039461 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 290 | n=int(input())
dat=list(map(int, input().split()))
for e in dat:
e = bin(e)[2:]
e = list(e).reverse()
e = "".join(e)
re = []
for e in dat:
try:
w=e.index('1')
re.append(w)
except Exception:
re.append(0)
print(min(re)) |
s112449994 | p03494 | u464995425 | 1543036857 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 293 | n=int(input())
dat=list(map(int, input().split()))
for e in dat:
e = bin(e)[2:]
e = list(e).reverse()
re = []
for e in dat:
try:
w=e.index('1')
re.append(w)
except RintimeError:
re.append(0)
print(min(re))
print(1) |
s551063788 | p03494 | u464995425 | 1543036827 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 291 | n=int(input())
dat=list(map(int, input().split()))
for e in dat:
e = bin(e)[2:]
e = list(e).reverse()
re = []
for e in dat:
try:
w=e.index('1')
re.append(w)
except IndexError:
re.append(0)
print(min(re))
print(1) |
s105623241 | p03494 | u464995425 | 1543035900 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 179 | n=int(input())
dat=list(map(int, input().split()))
for e in dat:
e = bin(e)[2:]
e = list(e).reverse()
re=[]
for e in dat:
re.append(len(e))
print(min(re)) |
s151588111 | p03494 | u464995425 | 1543035825 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 264 | n=int(input())
dat=list(map(int, input().split()))
for e in dat:
e = bin(e)[2:]
e = list(e).reverse()
re=[]
for e in dat:
try:
# w=e.index('1')
# re.append(w)
except ValueError:
re.append(0)
print(min(re)) |
s793847108 | p03494 | u464995425 | 1543035704 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 262 | n=int(input())
dat=list(map(int, input().split()))
for e in dat:
e = bin(e)[2:]
e = list(e).reverse()
re=[]
for e in dat:
try:
w=e.index('1')
re.append(w)
except ValueError:
re.append(0)
print(min(re)) |
s184203964 | p03494 | u464995425 | 1543035666 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 261 | n=int(input())
dat=list(map(int, input().split()))
for e in dat:
e = bin(e)[2:]
e = list(e).reverse()
re=[]
for e in dat:
try:
w=e.index('1')
re.append(w)
except ValueError
re.append(0)
print(min(re)) |
s030176483 | p03494 | u464995425 | 1543030916 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 235 | n=int(input())
dat = list(map(int, input().split()))
flag=True
count = 0
for e in dat:
e = e/2
count = count+1
print(count)
|
s480168656 | p03494 | u464995425 | 1543030834 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 250 | n=int(input())
dat = list(map(int, input().split()))
flag=True
count = 0
for i in range(n):
dat[i] = dat[i]/2
count = count+1
print(count)
|
s407506962 | p03494 | u464995425 | 1543030695 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 383 | n=int(input())
dat = list(map(int, input().split()))
flag=True
count = 0
while (flag==True):
for i in range(n):
if dat[i]%2==1:
flag=False
break
else:
dat[i] = dat[i]/2
count = count+1
print(count)
... |
s329529471 | p03494 | u464995425 | 1543030440 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 373 | n=int(input())
dat = list(map(int, input().split()))
flag=True
count = 0
while flag==True:
for i in range(n):
if dat[i]%2==1:
flag=False
break
else:
dat[i] = dat[i]/2
count = count+1
print(count)
... |
s278759809 | p03494 | u464995425 | 1543030262 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 377 | n=int(input())
dat = list(map(int, input().split()))
flag=True
int count = 0
while flag==True:
for i in range(n):
if dat[i]%2==1:
flag=False
break
else:
dat[i] = dat[i]/2
count = count+1
print(count)
... |
s377735247 | p03494 | u464995425 | 1543030003 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 385 | n=int(input())
dat = list(map(int, input().split()))
boolean flag=True
int count = 0
while flag==True:
for i in range(n):
if dat[i]%2==1:
flag=False
break
else:
dat[i] = dat[i]/2
count = count+1
print(count)
... |
s224148951 | p03494 | u464995425 | 1543029839 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 379 | n=int(input())
dat = list(map(int, input().split()))
boolean flag=True
int count = 0
while flag:
for i in range(n):
if dat[i]%2==1:
flag=False
break
else:
dat[i] = dat[i]/2
count = count+1
print(count)
... |
s261555800 | p03494 | u464995425 | 1543029133 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 378 | n=int(input())
dat = list(map(int, input().split()))
boolean flag=True
int count = 0
while flag:
for i in range(n):
if dat[i]%2==1:
break
flag=False
else:
dat[i] = dat[i]/2
count = count+1
print(count)
... |
s750111677 | p03494 | u464995425 | 1543029076 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 382 | n=int(input())
dat = list(map(int, input().split()))
boolean flag=True
int count = 0
while flag:
for int i in range(n):
if dat[i]%2==1:
break
flag=False
else:
dat[i] = dat[i]/2
count = count+1
print(count)
... |
s876674868 | p03494 | u464995425 | 1543024801 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 173 | n=int(input())
dat = list(map(int, input().split()))
re=1
print(re)
|
s029062029 | p03494 | u464995425 | 1543024683 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3316 | 281 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = list(str(bin(e)))
e.reverse()
re = 0
for e in dat:
re= e.count('1')
print(re)
|
s427115099 | p03494 | u464995425 | 1543024587 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3316 | 273 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = list(str(bin(e)))
e.reverse()
re = 0
for e in dat:
w=len(e)
print(re)
|
s201332861 | p03494 | u464995425 | 1543024543 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 277 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = list(str(bin(e)))
e.reverse()
re = 0
for e in dat:
w=e.index(1)
print(re)
|
s747700453 | p03494 | u464995425 | 1543024469 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3316 | 279 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = list(str(bin(e)))
e.reverse()
re = 0
for e in dat:
w=e.index('1')
print(re)
|
s200767111 | p03494 | u464995425 | 1543024178 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3316 | 283 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = list(str(bin(e)))
e.reverse()
re = 0
for e in dat:
w=e.index("1")
re=w
print(re)
|
s625048508 | p03494 | u464995425 | 1543024059 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3316 | 283 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = list(str(bin(e)))
e.reverse()
re = 0
for e in dat:
w=e.index('1')
re=w
print(re)
|
s475642853 | p03494 | u464995425 | 1543023680 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 254 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = list(str(bin(e)))
e.reverse()
m=0
for i in range(n):
m=len(dat[i])
print(m)
|
s893315587 | p03494 | u464995425 | 1543023561 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 243 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = list(str(bin(e)))
e.reverse()
min=0
for e in dat:
min = min+1
print(min)
|
s245682651 | p03494 | u464995425 | 1543023474 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 406 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = list(str(bin(e)))
e.reverse()
min=0
for e in dat:
i=0
while i < len(e):
#if e[i]=='1':
# if i > min:
# min = i
# break
# else:
... |
s659798697 | p03494 | u464995425 | 1543023396 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 403 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = list(str(bin(e)))
e.reverse()
min=0
for e in dat:
i=0
while i < len(e):
if e[i]=='1':
# if i > min:
# min = i
break
else:
... |
s703831221 | p03494 | u464995425 | 1543023356 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 401 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = list(str(bin(e)))
e.reverse()
min=0
for e in dat:
i=0
while i < len(e):
if e[i]=='1':
if i > min:
min = i
break
else:
... |
s845066599 | p03494 | u464995425 | 1543022900 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 154 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = str(bin(e))
|
s435863522 | p03494 | u464995425 | 1543022875 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 163 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = str(bin(e))
e=list(e)
|
s750707821 | p03494 | u464995425 | 1543022835 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 193 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = str(bin(e))
e=e[2:]
e1=list(e)
e1.reverse()
|
s973163157 | p03494 | u464995425 | 1543022765 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 191 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = str(bin(e))
e=e[2:]
e=list(e)
e.reverse()
|
s765936778 | p03494 | u464995425 | 1543017400 | Python | Python (2.7.6) | py | Runtime Error | 12 | 2692 | 165 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = str(bin(e))
e=e[2:]
e=e[::-1]
|
s608225058 | p03494 | u464995425 | 1543017379 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 165 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = str(bin(e))
e=e[2:]
e=e[::-1]
|
s560963756 | p03494 | u464995425 | 1543017271 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 188 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = str(bin(e))
e=e[2:]
for e in dat:
i = len(e)
|
s024653584 | p03494 | u464995425 | 1543017211 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 197 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = str(bin(e))
e=e[2:]
for e in dat:
dan.append(len(e))
|
s005927315 | p03494 | u464995425 | 1543017136 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 217 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = str(bin(e))
e=e[2:]
for e in dat:
j = -1
while j > -len(e):
j = j -1
|
s264917176 | p03494 | u464995425 | 1543017041 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 282 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = str(bin(e))
e=e[2:]
for e in dat:
j = -1
while j > -len(e):
if e[j]=='1':
break
else:
j = j -1
|
s656270184 | p03494 | u464995425 | 1543016986 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 315 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = str(bin(e))
e=e[2:]
for e in dat:
j = -1
while j > -len(e):
if e[j]=='1':
dan.append(-j-1)
break
else:
j = j -1
|
s602235226 | p03494 | u464995425 | 1543016661 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 341 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = str(bin(e))
e=e[2:]
#for i in range(n):
# j = -1
# while j > -len(dat[i]):
# if dat[i][j]=='1':
# dan.append(-j-1)
# break
# else:
# j = j - 1
... |
s222888311 | p03494 | u464995425 | 1543016551 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 329 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = str(bin(e))
e=e[2:]
for i in range(n):
j = -1
while j > -len(dat[i]):
if dat[i][j]=='1':
dan.append(-j-1)
break
else:
j = j - 1
print(mi... |
s147467795 | p03494 | u464995425 | 1543016493 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 329 | n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
e = str(bin(e))
e=e[2:]
for i in range(n):
j = -1
while j > -len(dat[i]):
if dat[i][j]=='1':
dan.append(-j-1)
break
else:
j = j - 1
print(mi... |
s085275939 | p03494 | u464995425 | 1542953224 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 150 | n=int(input())
dat = list(map(int, input().split()))
for e in dat:
e = str(bin(e))
dat2=list(n)
for e in dat:
print(e)
#print(min(dat)-1)
|
s192500042 | p03494 | u464995425 | 1542952511 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 137 | n=int(input())
dat = list(map(int, input().split()))
for e in dat:
e = str(bin(e))
for e in dat:
e = e[1]
#print(min(dat)-1)
|
s275771000 | p03494 | u464995425 | 1542952484 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | n=int(input())
dat = list(map(int, input().split()))
for e in dat:
e = str(bin(e))
for e in dat:
e = e[::1]
#print(min(dat)-1)
|
s703407455 | p03494 | u464995425 | 1542951246 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 140 | n=int(input())
dat = list(map(int, input().split()))
for e in dat:
e = str(bin(e))
for e in dat:
e = e[::-1]
#print(min(dat)-1)
|
s038090514 | p03494 | u464995425 | 1542951202 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 141 | n=int(input())
dat = list(map(int, input().split()))
for e in dat:
e = str(bin(e))
for e in dat:
e = e [::-1]
#print(min(dat)-1)
|
s714467065 | p03494 | u464995425 | 1542950642 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 145 | n=int(input())
dat = list(map(int, input().split()))
for e in dat:
e = str(bin(e))
for e in dat:
e = e.rfind('1')
#print(min(dat)-1)
|
s443516307 | p03494 | u464995425 | 1542950526 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 144 | n=int(input())
dat = list(map(int, input().split()))
for e in dat:
e = str(bin(e))
for e in dat:
e = e.rfind('1')
print(min(dat)-1)
|
s831474700 | p03494 | u464995425 | 1542950387 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 145 | n=int(input())
dat = list(map(int, input().split()))
for e in dat:
e = str(byte(e))
for e in dat:
e = e.rfind('1')
print(min(dat)-1)
|
s388910346 | p03494 | u464995425 | 1542950113 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 147 | n=int(input())
dat = list(map(int, input().split()))
for e in dat:
e = str(bit(e))
#for e in dat:
# e = rfind('1')
#print(min(dat)-1)
|
s127864609 | p03494 | u464995425 | 1542950049 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 144 | n=int(input())
dat = list(map(int, input().split()))
for e in dat:
e = str(bit(e))
for e in dat:
e = rfind('1')
print(min(dat)-1)
|
s823918047 | p03494 | u047535298 | 1542641930 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 60 | 6
382253568 723152896 37802240 379425024 404894720 471526144 |
s584013832 | p03494 | u205580583 | 1542606096 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 310 | input_n = int(input())
input_a = map(int,input().split())
cnt = 0
end_flg = True
while end_flg:
for i in range(input_n):
if input_a[i] % 2 == 0:
input_a[i] = input_a[i]/2
else:
end_flg = False
break
if end_flg == False:break
cnt+=1
print(cnt) |
s649431913 | p03494 | u627803856 | 1542599830 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 138 | N = 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(cnt) |
s205973999 | p03494 | u410201501 | 1542135129 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 158 | import math
n = input()
a = list(map(int, input().split()))
ans = float("inf")
for _ in a:
ans = min(len(bin(_) - bin(_).rfind("1") - 1)
print(round(ans)) |
s722168283 | p03494 | u561828236 | 1541834466 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 263 | n = int(input())
l = [list(map(int,input().split()))]
j = 0
new = []
while True:
for m,i in enumerate(l):
if i % 2 == 0:
l[i] = i/2
if m == n:
j +=1
else:
print(j)
exit()
|
s563423270 | p03494 | u369212307 | 1541715349 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 155 | n = input()
num = list(map(int, input().split()))
count = 0
while sum(num) % 2 == 0:
for i in range(n):
num[i] /= 2
count += 1
print(count) |
s848164958 | p03494 | u698151863 | 1540584374 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 288 | a = int(input())
b = list(map(int, input().split()))
def isEven(c):
flag = True
for i in c:
if i%2 != 1:
flag = False
break
return flag
count = 0
flag = isEven(b)
if isEven(b)
while flag:
flag = isEven(b)
count = count + 1
print(count)
else:
print(0) |
s689308268 | p03494 | u698151863 | 1540584303 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 259 | a = int(input())
b = list(map(int, input().split()))
def isEven(c):
flag = True
for i in c:
if i%2 != 1:
flag = False
return flag
count = 0
if isEven(b)
while flag:
flag = isEven(b)
count = count + 1
print(count)
else:
print(0) |
s116927142 | p03494 | u698151863 | 1540583954 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 263 | a = int(input())
b = list(map(int, input().split()))
count = 0
while True:
for i in b:
if i%2 != 0 && count==0:
print(0)
break
elif i%2 != 0:
print(count)
break
else:
pass
count = count+1
b = [c/2 for c in b]
|
s308550037 | p03494 | u240550835 | 1540583816 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 265 |
a = int(input())
# スペース区切りの整数の入力
b = input().split()
b = [int(i) for i in b]
c = len(b)
d = 0
while c == len(b):
c=0
for i in b:
if b %2 == 0:
c +=1
if(c == len(a)):
d += 1
b = [b /2 for i in b]
print (d)
|
s343544597 | p03494 | u698151863 | 1540583815 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 227 | a = int(input())
b = list(map(int, input().split()))
count = 0
while True:
for i in b:
if i%2 != 0 && count==0:
print(0)
break
elif i%2 != 0:
print(count)
break
else:
count = count+1 |
s752165195 | p03494 | u240550835 | 1540583780 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 294 |
a = int(input())
# スペース区切りの整数の入力
b = input().split()
b = [int(i) for i in b]
//a = 4
//b=[5, 6, 8, 10]
c = len(b)
d = 0
while c == len(b):
c=0
for i in b:
if b %2 == 0:
c +=1
if(c == len(a)):
d += 1
b = [b /2 for i in b]
print (d)
|
s759281208 | p03494 | u240550835 | 1540583674 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 280 |
a = int(input())
# スペース区切りの整数の入力
b = map(int, input().split())
//a = 4
//b=[5, 6, 8, 10]
c = len(b)
d = 0
while c == len(b):
c=0
for i in b:
if b %2 == 0:
c +=1
if(c == len(a)):
d += 1
b = [b /2 for i in b]
print (d)
|
s945565152 | p03494 | u698151863 | 1540583349 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 175 | a = int(input())
b = list(map(int, input().split()))
if sum(b)%2 == 0 && sum(b) != 0:
v = min(b)
i = 0
while v != 1:
v = v/2
i = i+1
print(i)
else:
print(0)
|
s757577661 | p03494 | u935703783 | 1540583068 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | a = input()
b = map(int, input().split())
d = 0
for c in range(a):
d += c
print(d // 2) |
s415399713 | p03494 | u595539169 | 1540536190 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 286 | n = int(input())
a = []
for i in range(n):
a.append(int(input()))
count = 0
while(True):
odd = False
for i in range(n):
if((a[i] % 2) != 0):
odd = True
if(odd):
break
for i in range(n):
a[i] /= 2
count += 1
print(count)
|
s782766602 | p03494 | u595539169 | 1540534218 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 288 | n = int(input())
a = []
for i in range(n):
a.append(int(input()))
count = 0
while(True):
odd = False
for i in range(n):
if((a[i] % 2) != 0):
odd = True
if(odd):
break
for i in range(n):
a[i] /= 2
count += 1
print(count)
|
s081715423 | p03494 | u518556834 | 1539909606 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 167 | n = int(input())
a = list(mao(int,input().split()))
b = []
c = 0
for i in range(n):
while a[i] % 2 == 0:
a[i] /= 2
c += 1
b.append(c)
c = 0
print(min(b)) |
s920505736 | p03494 | u506689504 | 1538892452 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 211 | 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 500*i + 100*j + 50*k == x:
ans += 1
print(ans) |
s838261823 | p03494 | u172393892 | 1538873866 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3316 | 281 | N = input()
A = input().split(",")
count = 0
while True:
roop = False
for i in range(0, int(N)):
if int(int(A[i])) % 2 != 0:
roop = True
break
A[i] = int(A[i]) / 2
if roop:
break
count+=1
print(count)
|
s156944358 | p03494 | u172393892 | 1538873782 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3316 | 273 | N = input()
A = input().split(",")
count = 0
while True:
roop = False
for i in range(0, int(N)):
if int(A[i]) % 2 != 0:
roop = True
break
A[i] = int(A[i]) / 2
if roop:
break
count+=1
print(count)
|
s484980698 | p03494 | u172393892 | 1538873705 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3316 | 269 | N = input()
A = input().split(",")
count = 0
roop = False
while True:
for i in range(0, int(N)):
if int(A[i]) % 2 != 0:
roop = True
break
A[i] = int(A[i]) / 2
if roop:
break
count+=1
print(count)
|
s826313877 | p03494 | u179369934 | 1537840304 | Python | Python (3.4.3) | py | Runtime Error | 73 | 3988 | 189 | def half(xs):
for x in xs:
if x % 2 == 0:
return xs
for i in range(len(xs)):
xs[i] /= 2
return half(xs)
ls = [int(num) for num in input().split()]
print(half(ls))
|
s662854415 | p03494 | u466478199 | 1537585511 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 252 | N,K=map(int,input().split())
A=list(map(int,input().split()))
L=[]
A.sort()
A.append(200001)
for i in range(N):
if A[i]==A[i+1]:
continue
else:
x=A.count(A[i])
L.append(x)
L.sort(reverse=True)
S=0
for i in range(K):
S+=L[i]
print(N-S) |
s368604814 | p03494 | u514383727 | 1537500550 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 176 | i = int(input())
num = map(int, input().split())
count = 0
while True:
for k in range(i):
num[k] /= 2
if type(num[k]) is float:
break
count += 1
print(count)
|
s495971293 | p03494 | u124592621 | 1537500294 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 142 | n = int(input())
A = list(map(int, input().split()))
cnt = 0
while all(a % 2 == 0 for i in A):
A = [a / 2 for a in A]
cnt += 1
print(cnt) |
s808080259 | p03494 | u514383727 | 1537499968 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 193 | i = int(input())
num = map(int, input().split())
count = 0
while True:
for k in range(i):
num[k] =/ 2
if type(num[k]) is float or num[k] == 0:
break
count += 1
print(count)
|
s905952401 | p03494 | u514383727 | 1537499721 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 186 | i = int(input())
num = map(int, input().split())
count = 0
while True:
for k in range(i):
num[k] = num[k] / 2
if type(num[k]) is float:
break
count += 1
print(count)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.