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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s848110066 | p03494 | u751717561 | 1589581476 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 211 | N = int(input())
import math
a = list(map(int, input().split()))
#最大公約数
ans = a[0]
for i in range(1, N):
ans = math.gcd(ans, a[i])
cnt = 0
while ans%2 == 0:
ans /= 2
cnt += 1
print(cnt) |
s916118435 | p03494 | u000842852 | 1589395735 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 164 | def how_many(n):
count = 0
while n%2==0:
n /= 2
count += 1
return count
N = int(input())
A = map(int, input().split())
print(min(map(how_many, A))) |
s898563276 | p03494 | u752114241 | 1589133581 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 129 | input()
A = list(map(int,input(),split()))
count=0
while all(a%2==0for a in A):
A = [a/2 for a in A]
count +=1
print(count)
|
s908502000 | p03494 | u297667660 | 1589131485 | Python | PyPy3 (2.4.0) | py | Runtime Error | 172 | 38256 | 272 | N = int(input())
A = [map(int, input().split())]
count = 0
while True:
for i in range(N):
if A[i] % 2 == 0:
A[i] = A[i] // 2
else:
break
else:
count += 1
continue
break
print(count) |
s554883166 | p03494 | u165268875 | 1588893056 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 158 |
N = int(input())
A = list(map(int, input().split()))
count =0
while all(a%2 == 0 for a in A) :
A = [a/2 in a in A]
count = count + 1
print(count)
|
s332361945 | p03494 | u020224218 | 1588875623 | Python | PyPy3 (2.4.0) | py | Runtime Error | 178 | 38256 | 138 | 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")-)
print(ans) |
s824753739 | p03494 | u743852057 | 1588819329 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 242 | N = int(input())
list=[]
for i in range(N):
list.append(int(input()))
a = []
i = 0
for i in range(N):
a.append(int(0))
while list[i] > 0 and list[i] % 2 == 0:
a[i] = a[i] + 1
list[i] = int(list[i]/2)
print(min(a)) |
s904979004 | p03494 | u743852057 | 1588818989 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 226 | N = int(input())
list=[]
for i in range(N):
list.append(int(input()))
a = []
i = 0
for i in range(N):
a.append(int(0))
while list[i] % 2 == 0:
a[i] = a[i] + 1
list[i] = int(list[i]/2)
print(min(a)) |
s582095683 | p03494 | u743852057 | 1588818889 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 226 | N = int(input())
list=[]
for i in range(N):
list.append(int(input()))
a = []
i = 0
for i in range(N):
a.append(int(0))
while list[i] % 2 == 0:
a[i] = a[i] + 1
list[i] = int(list[i]/2)
print(min(a)) |
s629575546 | p03494 | u932868243 | 1588705786 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 147 | n=int(input())
a=list(map(int,input().split()))
n=0
while n>=0:
if all(aa%2==0):
for b in a:
b=b//2
n+=1
else:
break
print(n) |
s276606536 | p03494 | u932868243 | 1588705585 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 140 | n=int(input())
a=list(map(int,input().split()))
n=0
while n>=0:
if all(aa%2==0 for aa in a):
aa%=2
n+=1
else:
break
print(n) |
s022579086 | p03494 | u932868243 | 1588705473 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3060 | 104 | n=int(input())
a=list(map(int,input().split()))
n=0
if all(aa%2==0 for aa in a):
aa%=2
n+=1
print(n) |
s264411012 | p03494 | u652656291 | 1588627438 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 165 | n = int(input())
A = [map(int,input().split())]
ans = 0
While True:
for i in range(n):
A[i] == A[i]/2
if A[i] % 2 !=0:
break
ans += 1
print(ans) |
s505428177 | p03494 | u534319350 | 1588624958 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 268 | n = int(input())
b = list(map(int, input().strip().split()))
num = 0
for j in range(100):
count = 0
for i in range(a):
if b[i] % 2 == 0:
count = 1 + count
if count == a:
b = [c/2 for c in b]
num = 1 + num
print(num) |
s204935852 | p03494 | u534319350 | 1588623905 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 261 | a = int(input())
b = [int(input()) for x in range(a)]
num = 0
for j in range(100):
count = 0
for i in range(a):
if b[i] % 2 == 0:
count = 1 + count
if count == a:
b = [c/2 for c in b]
num = 1 + num
print(num) |
s733806764 | p03494 | u568711768 | 1588541776 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | N = int(input())
A = list(map(int,input().split()))
k = 0
for i in range(0:N-1):
if A[i] % 2 == 0:
k = k + 1
else:
k
print(k)
|
s369308116 | p03494 | u568711768 | 1588541722 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 138 | N = int(input())
A = list(map(int,input().split()))
k = 0
for i in range(0:len(A)):
if A[i] == 0:
k = k + 1
else:
k
print(k)
|
s316630775 | p03494 | u568711768 | 1588541677 | Python | Python (3.4.3) | py | Runtime Error | 16 | 3064 | 135 | N = int(input())
A = list(map(int,input().split()))
k = 0
for i in range(0:N-1):
if A[i] == 0:
k = k + 1
else:
k
print(k)
|
s880181387 | p03494 | u568711768 | 1588541509 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 129 | N = int(input())
A = list(map(int,input().split()))
k = 0
for i in range(0:N-1):
while (A[i] % 2 ==0):
k = k + 1
print(k)
|
s162412399 | p03494 | u747005359 | 1588481223 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 137 | a = list(map(input().split()))
cnt = 0
while all(i%2==0 for i in a):
a = [i/2 for i in a]
cnt += 1
print(cnt) |
s618444826 | p03494 | u747005359 | 1588480872 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | a = list(map(input().split())
cnt = 0
while all(i%2==0 for i in a):
a = [i/2 for i in a]
cnt += 1
print(cnt) |
s455371541 | p03494 | u747005359 | 1588480812 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | a = list(map(input().split())
cnt = 0
while all(i%2==0 for i in a):
a = [i/2 for i in a]
cnt += 1
print(cnt) |
s968408408 | p03494 | u857673087 | 1588432952 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 138 | N = input()
A = list(map(int,input().split()))
count = 0
while all(a % == 0 for a in A):
A =[a/2 for a in A]
count += 1
print(count) |
s984614910 | p03494 | u129898499 | 1588396276 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 177 | N = int(input())
A = input()
X = 1000000000
count = 0
for i in range(N):
while A[i] % 2 ==0:
A[i] = A[i]//2
count +=1
if count < X:
X = count
count =0
print(X) |
s493150922 | p03494 | u129898499 | 1588396249 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 180 | N = int(input())
A = input()
X = 1000000000
count = 0
for i in range(N):
while A[i] % 2 ==0:
A[i] = A[i]//2
count +=1
if count < X:
X = count
count = 0
print(X) |
s388579026 | p03494 | u253422591 | 1588350821 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 260 | n = int(input())
a=[]
for i in range(n):
a.append(int(input()))
count = 0
success = True
while True:
for i, ele in enumerate(a):
if ele % 2 == 0:
a[i] = ele / 2
else:
success = False
if not success:
break
count += 1
print(count) |
s290783974 | p03494 | u331997680 | 1588303753 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 299 | N = int(input())
A = list(map(int, input().split()))
B = [ ]
c = 'non'
for i in A:
B.append(list(bin(i)))
for i in range(10000):
for j in range(N):
if B[j][-i-1] == '0':
continue
else:
c = i
break
if c == 0:
print(0)
break
elif c>0:
print(i)
break |
s923763767 | p03494 | u189089176 | 1588183360 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3056 | 236 | # B - Shift only
# https://atcoder.jp/contests/abc081/tasks/abc081_b
N = input()
nums = list(map(int,input().split()))
count= 0
while all(a % 2 == 0 for num in nums):
nums = [(num/2) for num in nums]
count += 1
print(count) |
s741004657 | p03494 | u189089176 | 1588183314 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 235 | # B - Shift only
# https://atcoder.jp/contests/abc081/tasks/abc081_b
N = input()
nums = list(map(int,input().split()))
count= 0
while all(a % 2 == 0 for num in nums):
num = [(num/2) for num in nums]
count += 1
print(count) |
s432559732 | p03494 | u718659561 | 1588124566 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 73 | str=input()
a=str[0]
b=str[len(str)-1]
c=len(str)-2
print(a+str(c)+b)
|
s506861478 | p03494 | u323532272 | 1588119668 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 180 | N = int(input())
count = 0
nlist = map(int, input().split())
while(True):
for i in range(N):
nlist = [n/2 for n in nlist]
if nlist[i]%2 != 0:
break
count++
|
s669626591 | p03494 | u350578302 | 1587947787 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | N = int(input())
li = list(map(int,input().split()))
count = 0
while:
for i in range(N):
if li[i]%2!=0:
break
count += 1
print(count) |
s959119907 | p03494 | u728774856 | 1587859980 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 241 | count = int(input())
numbers = [int(num) for num in input().split()]
counter = 0
while True:
tmp = 0
for item in numbers:
tmp += item % 2
if tmp > 0:
break
counter ++
numbers = [item / 2 for item in numbers]
print(counter) |
s813627399 | p03494 | u728774856 | 1587859876 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 236 | count = input()
numbers = [int(num) for num in input().split()]
counter = 0
while True:
tmp = 0
for item in numbers:
tmp += item % 2
if tmp > 0:
break
counter ++
numbers = [item / 2 for item in numbers]
print(counter) |
s741630288 | p03494 | u728774856 | 1587859832 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 236 | count = input()
numbers = (int(num) for num in input().split())
counter = 0
while True:
tmp = 0
for item in numbers:
tmp += item % 2
if tmp > 0:
break
counter ++
numbers = [item / 2 for item in numbers]
print(counter) |
s134422371 | p03494 | u728774856 | 1587859667 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 224 | count = input()
numbers = map(int, input().split())
counter = 0
while True:
tmp = 0
for item in numbers:
tmp += item % 2
if tmp > 0:
break
counter ++
numbers = [item / 2 for item in numbers]
print(counter) |
s063279310 | p03494 | u728774856 | 1587859495 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 233 | count = input()
numbers = list(map(int, input().split(' ')))
counter = 0
while True:
tmp = 0
for item in numbers:
tmp += item % 2
if tmp > 0:
break
counter ++
numbers = [item / 2 for item in numbers]
print(counter) |
s430655732 | p03494 | u728774856 | 1587859051 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 227 | count = input()
numbers = map(int, input().split(' '))
counter = 0
while True:
tmp = 0
for item in numbers:
tmp += item % 2
if tmp > 0:
break
counter ++
numbers = [item / 2 for item in numbers]
print(counter) |
s550978285 | p03494 | u728774856 | 1587856694 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 235 | count = int(input())
numbers = map(int, input().split(' '))
counter = 0
while True:
for item in numbers:
if item % 2 == 1:
break
else:
counter += 1
numbers = [item / 2 for item in numbers]
print(counter)
|
s485648218 | p03494 | u749071216 | 1587831295 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 327 | import math
N=int(input())
a = input().split()
count=0
while True:
for i in range(len(a_num)):
print(a_num[i],a_num[i]%2,math.floor(a_num[i]/2))
a_num[i]=math.floor(a_num[i]/2)
print("========")
count +=1
if a_num[i]%2 != 0:
#print ("it's 1!")
break
print(c... |
s014235466 | p03494 | u852790844 | 1587759175 | Python | Python (3.4.3) | py | Runtime Error | 153 | 14536 | 155 | import numpy as np
n = int(input())
a = np.array(readline().split(), dtype=np.int64)
ans = 0
while np.all(a&1 == 0):
a >>= 1
ans += 1
print(ans) |
s250526724 | p03494 | u267577436 | 1587743559 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 278 | N = input() #一応読むけど、ループ回せば不要では
aList=input().split()
opCnt = 0
isAllE = True #奇数見つかるまでは見なしTrue
while isAllE:
for a in aList:
if a%2 == 1:
isAllE = False
else:
opCnt = opCnt + 1
print(opCnt)
|
s985679993 | p03494 | u267577436 | 1587743521 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 270 | N = input() #一応読むけど、ループ回せば不要では
aList=input().split()
opCnt = 0
isAllE = True #奇数見つかるまでは見なしTrue
while isAllE
for a in aList:
if a%2 == 1:
isAllE = False
else:
opCnt = opCnt + 1
print(opCnt) |
s346761366 | p03494 | u225084815 | 1587679326 | Python | PyPy3 (2.4.0) | py | Runtime Error | 179 | 38256 | 384 | import math
N = int(input())
li = list(map(int, input().split()))
ans = math.inf
for i in li:
cnt = 0
if i%2==0:
tudukeru = True
else:
tudukeru = False
ans = 0
while tudukeru:
if i%2 == 0:
i = i//2
cnt += 1
else:
tudukeru = Fals... |
s207721493 | p03494 | u854550470 | 1587662888 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 173 | n = int(input())
nums = [int(i) for i in input().split()]
ans = 0
while Ture:
if [i for i in if i % 2 == 1]:
break
nums = [ i//2 for i in nums]
ans += 1
print(ans) |
s606909661 | p03494 | u021906447 | 1587601237 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 141 | input()
nums = list(map(int, input().split()))
i = 0
while all(n % 2 == 0 for n in num):
nums = [n/2 for n in nums]
i += 1
print(i)
|
s690638032 | p03494 | u021906447 | 1587601102 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 144 | input()
nums = list(map(int, input().split()))
i = 0
while all(n % 2 == 0 for n in num):
nums = [n / 2 for n in nums]
i += 1
print(i)
|
s867022326 | p03494 | u021906447 | 1587600730 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 110 | input()
num = list(map(int, input().split()))
i = 0
while all(num % 2 == 0):
num // 2
i += 1
print(i)
|
s213042941 | p03494 | u011716617 | 1587535054 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 138 | 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)
|
s029331762 | p03494 | u798260206 | 1587499642 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 320 | N = int(input())
A = list(map(int,input().split()))
n = 0
can = True
while can:
for i in range(N):
if A[i]%2 != 0:
can = False
break
elif A[i]%2 == 0:
A[i] = A[i] // 2
n += 1
elif:
can = False
break
print(n) |
s301885885 | p03494 | u798260206 | 1587499293 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 301 | N = int(input())
A = list(map(int,input().split()))
n = 0
can = True
while can:
for i in range(N):
if A[i]%2 != 0:
can = False
break
if A[i]%2 == 0:
A[i] = A[i] // 2
n += 1
elif:
can = False
break
print(n) |
s766602540 | p03494 | u798260206 | 1587499138 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 263 | N = int(input())
A = list(map(int,input().split()))
n = 0
can = True
while can:
for i in range(N):
if A[i]%2 != 0:
can = False
break
elif A[i]%2 == 0:
A[i] = A[i] // 2
n += 1
print(n) |
s624765902 | p03494 | u798260206 | 1587499065 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 320 | N = int(input())
A = list(map(int,input().split()))
n = 0
can = True
while can:
for i in range(N):
if A[i]%2 == 1:
can = False
break
elif A[i]%2 == 0:
A[i] = A[i] // 2
n += 1
else:
can = False
break
print(n) |
s941548705 | p03494 | u798260206 | 1587497686 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 252 | N = int(input())
A = list(map(int,input().split()))
n = 0
can = True
while can:
for i in range(N):
if A[i]%2 == 0:
A[i] = int(A[i]/2)
n += 1
else:
can = False
break
print(n)
|
s645850659 | p03494 | u798260206 | 1587497387 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 242 | N = int(input())
A = list(map(int,input().split()))
n = 0
can = True
while can:
n += 1
for i in range(N):
if A[i]%2 == 0:
A[i] = (A[i]/2)
else:
can = False
break
print(n)
|
s335492851 | p03494 | u798260206 | 1587496594 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 219 | N = int(input())
A = map(int,input().split())
n = 0
can = True
while can:
for i in range(N):
if A[i]%2 == 0:
A[i] = (A[i]/2)
n += 1
else:
break
print(n)
|
s198248116 | p03494 | u798260206 | 1587496537 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 219 | N = int(input())
A = map(int,input().split())
n = 0
can = True
while can:
for i in range(N):
if A[i]%2 == 0:
A[i] = (A[i]/2)
n += 0
else:
break
print(n)
|
s706788441 | p03494 | u798260206 | 1587496503 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 211 | N = int(input())
A = map(int,input().split())
n = 0
can = True
while can:
for i in range(N):
if A[i]%2 == 0:
A[i] = (A[i]/2)
n += 0
else:
break
print(n)
|
s272116100 | p03494 | u762755436 | 1587482352 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 225 | N = int(input())
A = [int(i) for i in input().split()]
count = 0
can = True
while can :
count += 1
for i in range(N) :
if A[i] % 2 == 0 :
A[i] = int( A[i] / 2 )
else :
count -= 1
can = False
break
print(en) |
s849646705 | p03494 | u762755436 | 1587481565 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3056 | 229 | N = int(input())
A = [input() for i in range(N)]
count = 0
can = True
while can:
count += 1
for i in range(N):
if A[i]%2 == 0:
A[i] = int(A[i]/2)
else:
count-=0
can = False
break
print(count)
|
s910043865 | p03494 | u869265610 | 1587338307 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 71 | N=int(input())
S=int(input().split())
i=0
while S%2!==0:
i+=1
print(i)
|
s326382293 | p03494 | u869265610 | 1587337969 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 69 | N=int(input())
S=int(input().split())
i=0
while S%2!==0
i+=1
print(i) |
s835765795 | p03494 | u122598824 | 1587255831 | Python | PyPy3 (2.4.0) | py | Runtime Error | 164 | 38384 | 130 | n=int(input())
a=[map(int,input().split())]
for A in a:
cnt=0
while A%2==0:
A=A//2
cnt=cnt+1
print(cnt)
|
s358446847 | p03494 | u082704159 | 1587154546 | Python | PyPy3 (2.4.0) | py | Runtime Error | 176 | 38256 | 286 | num = int(input())
line = list(map(int,input().split()))
count = True
count_num = 0
while count:
for i in range(num):
if line[i] % 2 != 0:
count = False
if count:
for i in range(num):
line[i] /= 2
count_num += 1
print(count_num) |
s022166868 | p03494 | u122598824 | 1587079222 | Python | PyPy3 (2.4.0) | py | Runtime Error | 2112 | 129540 | 119 | n=int(input())
a=input()
for A in a:
while int(A)%2==0:
print(A)
if int(A)%2==1:
break |
s086242152 | p03494 | u077127204 | 1587042098 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 173 | N = int(input())
A = list(map(int, input().split()))
count = 0
while True:
A, mod = zip([divmod(a, 2) for a in A])
if sum(mod) > 0:
break
count += 1
print(count) |
s852990025 | p03494 | u077127204 | 1587041420 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 173 | N = int(input())
A = list(map(int, input().split()))
count = 0
while True:
A, mod = zip([divmod(a, 2) for a in A])
if sum(mod) > 0:
break
count += 1
print(count)
|
s240417811 | p03494 | u077127204 | 1587041280 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 169 | N = int(input())
A = list(map(int, input().split()))
count = 0
while True:
A, mod = zip([divmod(a, 2) for a in A])
if sum(mod) > 0:
break
count++
print(count) |
s104016416 | p03494 | u121434459 | 1587004744 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 37 | s = int,input()
i = list(int,input()) |
s960050552 | p03494 | u601575292 | 1586951150 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 203 | N = int(input)
A = list(map(int, input().split()))
f = True
cnt = 0
while(f):
for i in range(N):
if A[i]%2 == 0:
A[i] = A[i]//2
continue
f = False
if f:
cnt += 1
print(cnt)
|
s934959892 | p03494 | u873839198 | 1586806044 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 360 | n: int = input()
number: int = []
count: int = 0
flag: bool = False
number = list(map(int, input().split()))
while flag != True:
tmp: int = []
for n in number:
if n % 2 == 0:
tmp.append(n / 2)
else:
flag = True
break
if flag:
print(count)
... |
s353904498 | p03494 | u873839198 | 1586803909 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 335 | n: int = input()
number: int = [input().split()]
count: int = 0
flag: bool = False
while flag != True:
tmp: int = []
for n in number:
if n % 2 == 0:
tmp.append(n / 2)
else:
flag = True
break
if flag:
print(count)
break
number = tmp
... |
s808765060 | p03494 | u388927326 | 1586791275 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 643 | #!/usr/bin/env python3
import sys
def main():
n = int(input())
imax = None
dmax = 0
for i in range(2, n + 1):
print("? {} {}".format(1, i))
sys.stdout.flush()
dist = int(input())
if dist > dmax:
dmax = dist
imax = i
imax2 = None
dmax2 = 0... |
s129884949 | p03494 | u107798522 | 1586749153 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 194 | n = int(input())
an = map(int, input().split())
count = 0
flg = 0
while flg == 0:
for i in n:
if (int(an[i]))%2 == 1:
flg = 1
elif i == n-1 && flg == 0:
count = count + 1
|
s911131618 | p03494 | u100873497 | 1586735809 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 121 | n=input()
li = list(map(int,input().split()))
ans = 0
while li % 2 == 0:
li /= 2
ans += 1
return ans
print(ans) |
s508111932 | p03494 | u073446235 | 1586720449 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 168 | a = int(input())
b = int(input())
c = int(input())
x = int(input())
print([i*500 + j*100 + k*50 for i in range(a+1) for j in range(b+1) for k in range(c+1)].count(x))
|
s610366833 | p03494 | u409306788 | 1586703266 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 538 | # B - Shift Only
import sys
import clipboard
# テストケースが複数行の場合、iOSだと一気に読み込んでしまうので
# 1行ずつ読み込むように、テキストファイルにいったんコピーする
if sys.platform == 'ios':
sample = clipboard.get()
file = open('input_file.txt', 'w')
file.write(sample)
file.close()
sys.stdin = open('input_file.txt')
input()
A = list(map(int, input().spli... |
s885755970 | p03494 | u919235786 | 1586672641 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 159 | n=int(input())
a=list(map(int, input().split()))
d=[]
for c in range(n):
b=0
while a[c]%2==0:
a[c]=int(a[c]/2)
b+=1
d[c].append(b)
print(max(d))
|
s855610640 | p03494 | u919235786 | 1586672417 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 154 | n=int(input())
a=list(map(int, input().split()))
d=[]
for c in range(n):
b=0
while a[c]%2==0:
a[c]=a[c]//2
b+=1
d[c].append(b)
print(max(d)) |
s275191443 | p03494 | u919235786 | 1586672330 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 153 | n=int(input())
a=list(map(int, input().split()))
d=[]
for c in range(n):
b=0
while a[c]%2==0:
a[c]=a[c]/2
b+=1
d[c].append(b)
print(max(d)) |
s403960279 | p03494 | u919235786 | 1586672258 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 156 | n=int(input())
a=list(map(int,input().split()))
d=list()
for c in range(n):
b=0
while a[c]%2==0:
a[c]=a[c]/2
b+=1
d[c].append(b)
print(max(d)) |
s446473554 | p03494 | u881028805 | 1586642183 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 164 | n = int(input())
nums = list(map(int, input().split()))
count = 0
while all(num%2 == 0 for num in nums):
nums = [num/2 for num in nums]
count += 1
print(num) |
s625018087 | p03494 | u085910248 | 1586634091 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | a,b = map(int, input().split())
c = a * b
if c % 2:
print("Odd")
else:
print("Even")
|
s734603217 | p03494 | u770486670 | 1586631177 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3060 | 116 | n=int(input())
A=list(map(int,input()))
c=0
while all(a%2==0 for a in A):
A=[a/2 for a in A]
c+=1
print(c)
|
s779107662 | p03494 | u142023109 | 1586569534 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3188 | 471 | n = int(input())
a = map(int, input().split())
counter = 0
# xが2で何回割れるかの関数
def how_much_time_divisible(x):
ans = 0
while x % 2 == 0:
x /= 2
ans += 1
return ans
# リストaの要素すべてに対して、2で何回割れるかの値に置き換えたい(bがその置き換わったリストである)
b = map(how_much_time_divisible, a)
# bの要素で最も小さいものが答えである
print(min(b))
|
s339906037 | p03494 | u652656291 | 1586567585 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 177 | 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))
|
s942781944 | p03494 | u892018927 | 1586471689 | Python | Python (3.4.3) | py | Runtime Error | 151 | 12392 | 69 | import numpy as np
import pandas as pd
a = input()
b = list(input()) |
s431494759 | p03494 | u787646565 | 1586465721 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 191 | N = int(input())
n_list = [int(i), for i in input().split("")]
ans = 0
while True:
if [int(i) for n_list if i % 2 == 1]:
break
n_list = [i // 2 for i in n_list]
ans += 1
print(ans) |
s159385672 | p03494 | u700806147 | 1586456886 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3192 | 292 | n = int(input())
a = list(map(int, input().split))
def 割れる回数(a):
回数 = 0
while a % 2 == 0:
回数 += 1
a = a // 2
return 回数
割れる回数のリスト = [割れる回数(a_i) for a_i in a]
答え = min(割れる回数のリスト)
print(答え) |
s761839788 | p03494 | u603324902 | 1586442347 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 290 |
n = int(input())
a = list(map(int,input().split()))
l = []
ans = 0
for x in range(n)
for _ in range(10000000):
if a[x]%2 == 0 and a_min > 0:
ans += 1
continue
else:
l.append(ans)
ans = 0
break
print(min(l)) |
s766863180 | p03494 | u603324902 | 1586440252 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 338 |
n = int(input())
a = list(map(int,input().split()))
a_min = min(a)
ans = 0
for _ in range(10000000):
if a_min%2 == 0 and a_min > 0:
ans += 1
a_min = a_min//2
contnue
else:
break
for y in a:
if y%2==1:
ans -= 100000000
continue
if ans > 0:
print(ans)
... |
s041968926 | p03494 | u603324902 | 1586371643 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 341 |
n = int(input())
a = list(map(int,input().split()))
a_min = min(a)
ans = 0
for x in range(2,1000000,2):
if a_min%2 == 0 and a_min > 0:
ans += 1
a_min = a_min//2
contnue
else:
break
for y in a:
if y%2==1:
ans -= 100000000
continue
if ans > 0:
print(an... |
s213703795 | p03494 | u603324902 | 1586371529 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 316 |
n = int(input())
a = list(map(int,input().split()))
a_min = min(a)
ans = 0
for x in range(2,1000000,2):
if a_min%2 == 0 and a_min > 0:
ans += 1
contnue
else:
break
for y in a:
if y%2==1:
ans -= 100000000
continue
if ans > 0:
print(ans)
else:
print(0) |
s115833938 | p03494 | u603324902 | 1586371238 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 297 |
n = int(input())
a = list(map(int,input().split()))
a_min = min(a)
ans = 0
for x in range(2,1000000,2):
if a_min%2 == 0 and a_min > 0:
a += 1
contnue
else:
break
for y in a:
if y%2==1:
ans -= 100000000
if ans > 0:
print(ans)
else:
print(0) |
s225293412 | p03494 | u189397279 | 1586277853 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 200 | # -*- coding: utf-8 -*-
N = int(input())
a = list(map(int, input().split(" ")))
c = []
for i in a:
count = 0
while not(a % 2):
a = int(a / 2)
count += 1
c.append(count)
print(min(c)) |
s107849094 | p03494 | u675024268 | 1586204217 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 351 | n = int(input(n))
a = input().split(" ")
for i in range(n):
a[i] = int(a[i])
flag = False
cnt1 = 0
cnt2 = 0
while flag == False:
for i in range(n):
if a[i] % 2 == 0:
cnt2 += 1
if cnt2 == n:
cnt2 = 0
cnt1 += 1
for i in range(n):
a[i] = a[i]/2
else:
... |
s076646268 | p03494 | u457922080 | 1586203052 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 138 | 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) |
s706242190 | p03494 | u675024268 | 1586203004 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 264 | n = int(input())
a = int(input().split(" "))
flag = False
cnt1 = 0
cnt2 = 0
while flag == True:
for i in range(n):
if a[i] % 2 == 0:
cnt2 += 1
if cnt2 == n:
cnt1 += 1
for i in range(n):
a[i] = a[i]/2
else:
flag == True
print(cnt1) |
s532107220 | p03494 | u457922080 | 1586202827 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | 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) |
s779884500 | p03494 | u040141413 | 1586044294 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 249 | n = input()
li = list(map(int,input().split())
cnt = 0
print(n)
print(li)
while True:
for i in range(n):
if li[i]%2 ==0:
pass
else:
break
for j in range(n):
li[j]/=2
cnt += 1
print(cnt) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.