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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s052088231 | p03493 | u140251125 | 1515632146 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 505 | import math
N, K = map(int, input().split())
A = list(map(int, input().split()))
#keyはA[i]、valueは登場回数
A_unique = {}
for i in range(0,len(A)):
if A[i] in A_unique:
A_unique[A[i]] += 1
else:
A_unique[A[i]] = 1
v = list(A_unique.values())
v.sort() #登場回数が少ない順に書き換えていく
A_length = len(A_unique.keys... |
s903805630 | p03493 | u569906225 | 1515392189 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 116 | # A - Placing Marbles
# coding: utf-8
s1, s2 ,s3 = map(int, raw_input().split())
s = [s1, s2, s3]
print s.count(1) |
s280782859 | p03493 | u706792461 | 1515124192 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3192 | 842 | def main():
N = int(input())
A = tuple(map(int, input().split()))
a = list(A)
m = 0
xy = [] //ZeroMemory.Clear
apnd = xy.append
if min(a) == max(a):
print(0)
return
elif min(a) < 0 and max(a) >= 0:
if abs(min(a)) > max(a):
x = min(a)
else:
... |
s097035342 | p03493 | u484460274 | 1514928164 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | N=input()
S=map(int,input().split())
sum=0
for num in S:
sum=sum|num
for i in range(200):
if sum>>i&1==1:
print(i)
break |
s829461826 | p03493 | u010437136 | 1514324266 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 193 | import sys
a1 = sys.stdin.readline()
a2 = sys.stdin.readline()
a3 = sys.stdin.readline()
b1 = a1.rstrip()
b2 = a2.rstrip()
b3 = a3.rstrip()
s1 =int(b1)
s2 =int(b2)
s3 =int(b3)
print(s1+s2+s3)
|
s579621614 | p03493 | u313890617 | 1514046753 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 1281 | n=int(input())
#print(n)
#a=input().split()
a=[int(x) for x in input().split()]
#a=map(int,input().split()) ... |
s639029041 | p03493 | u313890617 | 1514046444 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 1281 | n=int(input())
#print(n)
#a=input().split()
a=[int(x) for x in input().split()]
#a=map(int,input().split()) ... |
s025959306 | p03493 | u451412370 | 1513995574 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 83 | # -*- coding: utf-8 -*-
a, b, c = map(int, raw_input().split())
print str(a+b+c) |
s064723585 | p03493 | u889106068 | 1513892712 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 56 | a = list(input())
b = 0
for i in a:
b += i
print(b) |
s908576783 | p03493 | u319612498 | 1513815432 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 87 | s = input()
2.
3.# sを分解して1の数をカウントする
4.print(s.count('1'))
|
s016611141 | p03493 | u319612498 | 1513815305 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 163 |
1.# -*- coding: utf-8 -*-
2."""
3.Created on Wed Dec 20 11:35:39 2017
4.
5.@author: kotania
6."""
7.
8.s = input()
9.
10.print(int(s[0])+int(s[1])+int(s[2]))
|
s247745719 | p03493 | u319612498 | 1513815128 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 4 | ggg
|
s601871971 | p03493 | u126747509 | 1513609773 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 221 | #include <iostream>
#include <string>
using namespace std;
int main()
{
string s;
int c=0;
cin >> s;
for ( int i=0; i<s.length(); i++ ) {
if ( s[i] == '1' ) c++;
}
cout << c << endl;
return 0;
}
|
s254479268 | p03493 | u422886513 | 1513309687 | Python | Python (2.7.6) | py | Runtime Error | 94 | 10420 | 541 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 14 22:24:31 2017
@author: Kanoh
"""
import numpy as np
N = int(raw_input())#標準入力
A = raw_input()#標準入力
A_split=A.split(" ")
A_int=np.zeros((N))
for i in range(int(N)):
A_int[i]=int(A_split[i])
counter=0
checker=0
while 1 :
for i in range(N)... |
s193261819 | p03493 | u422886513 | 1513309518 | Python | Python (2.7.6) | py | Runtime Error | 300 | 20328 | 521 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 14 22:24:31 2017
@author: Kanoh
"""
import numpy as np
N = int(raw_input())#標準入力
A = raw_input()#標準入力
A_split=A.split(" ")
A_int=np.zeros((N))
for i in range(int(N)):
A_int[i]=int(A_split[i])
counter=0
checker=0
while 1 :
for i in range(N)... |
s261240109 | p03493 | u775105214 | 1513291686 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 214 | # -*- coding: utf-8 -*-
# 整数の入力
a = int(raw_input())
# スペース区切りの整数の入力
b, c = map(int, raw_input().split())
# 文字列の入力
s = raw_input()
# 出力
print str(a+b+c) + " " + s |
s368332971 | p03493 | u775105214 | 1513291536 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 100 | a = int(raw_input())
b, c = map(int, raw_input().split())
s = raw_input()
print str(a+b+c) + " " + s |
s120098846 | p03493 | u744021017 | 1513231997 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3188 | 400 | n = input()
xs = input().split(' ')
xs = [int(x) for x in xs]
xs = set(xs)
xs = list(xs)
xs.sort()
a = [x for x in xs if x % 2 == 1]
if len(a) > 0:
print(0)
else:
m = 10 ** 9
for x, y in zip(xs[:-1], xs[1:]):
q = y - x
if q < m:
m = q
if m > xs[0]:
m = xs[0]
count... |
s665045112 | p03493 | u775105214 | 1513207079 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2692 | 215 | # -*- coding: utf-8 -*-
# 整数の入力
a = int(raw_input())
# スペース区切りの整数の入力
b, c = map(int, raw_input().split())
# 文字列の入力
s = raw_input()
# 出力
print str(a+b+c) + " " + s
|
s135212900 | p03493 | u775105214 | 1513207061 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 215 | # -*- coding: utf-8 -*-
# 整数の入力
a = int(raw_input())
# スペース区切りの整数の入力
b, c = map(int, raw_input().split())
# 文字列の入力
s = raw_input()
# 出力
print str(a+b+c) + " " + s
|
s996428568 | p03493 | u775105214 | 1513205798 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 173 | a = int(raw_input())
# スペース区切りの整数の入力
b, c = map(int, raw_input().split())
# 文字列の入力
s = raw_input()
# 出力
print str(a+b+c) + " " + s
|
s189205170 | p03493 | u775105214 | 1513205730 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 173 | a = int(raw_input())
# スペース区切りの整数の入力
b, c = map(int, raw_input().split())
# 文字列の入力
s = raw_input()
# 出力
print str(a+b+c) + " " + s
|
s492975560 | p03493 | u775105214 | 1513205646 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 215 | # -*- coding: utf-8 -*-
# 整数の入力
a = int(raw_input())
# スペース区切りの整数の入力
b, c = map(int, raw_input().split())
# 文字列の入力
s = raw_input()
# 出力
print str(a+b+c) + " " + s
|
s424890161 | p03493 | u035226531 | 1513138775 | Python | Python (3.4.3) | py | Runtime Error | 346 | 21876 | 236 | import numpy as np
N = int(input())
array = np.array(list(map(int, input().split())))
c = 0
check = True
while check:
for n in array:
if n % 2 == 1:
check = False
array = array / 2
c = c + 1
print(c-1)
|
s668026246 | p03493 | u466331465 | 1513114543 | Python | Python (3.4.3) | py | Runtime Error | 149 | 12484 | 378 | import numpy as np
a = list(map(int,input().split()))
N = a[0]
K = a[1]
b = list(map(int,input().split()))
li = list(set(b))
c = np.array(b)
d = np.array([])
h = len(li) -K
Num = 0
if K >= len(li):
print(0)
exit()
for i in li :
ind = np.take(c,np.where( c== i),axis = 0)
d = np.append(d,ind.shape)
d = np.sort(d)... |
s157967796 | p03493 | u466331465 | 1513109676 | Python | Python (3.4.3) | py | Runtime Error | 148 | 12428 | 197 | import numpy as np
N = list(input())
a = list(map(int,input().split()))
for i in range(1,30):
b = np.array([n/2 if n%2==0 else 0 for n in a])
a = b
if 0 in list(b):
print(i-1)
exit() |
s246986833 | p03493 | u466331465 | 1513107509 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 88 | l = list(input())
n=0
for int(i) in l :
if int(i)==1:
print(i)
n += 1
print(n) |
s111233912 | p03493 | u931153364 | 1513059051 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 13 | gmndiogjnaoe; |
s591298128 | p03493 | u315419875 | 1513026824 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 80 | snuke=input()
num=0
for i in list(snuke):
if i=='1':
num++
print(str(num)) |
s031347531 | p03493 | u176275968 | 1512968159 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 270 | n = int(input())
a = list(map(int,input().split()))
b=1
count=0
for i in range(n):
if(a[i]%2!=0):
print(count)
b=0
count=1
while b==1:
for i in range(n):
if(a[i]%2!=0):
print(count)
b=0
a[i]/=2
count+=1 |
s716921873 | p03493 | u695429668 | 1512965388 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 1685 | # coding:utf-8
N, K = list(map(int, input().split()))
A = list(map(int, input().split()))
default_A = A.copy()
counted = list(map(lambda x:x*0, list(range(10))))
'''
counted2 = [[0,0],[0,1],[0,2],[0,3],[0,4],[0,5],[0,6],[0,7],[0,8],[0,9]]
for a in A:
counted2[a-1][0] += 1
count2 = 0
for i in range(10):
if coun... |
s679835632 | p03493 | u657357805 | 1512963870 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 220 | n,k = [int(x) for x in input().split()]
s = {}
for i in input().split():
if(i in s):
s[i] += 1
else:
s[i] = 1
t = list(s.values())
t.sort()
a = 0
while len(t) > k:
a += t.pop(0)
print(a)
|
s664802901 | p03493 | u774411119 | 1512963570 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 302 | N=int(input())
suji=input()
I1=suji.split(" ")
I=list(map(int,I1))
wari=2
n=0
kazu=0
while n<N:
if n!=N-1:
if I[n]%2==0:
n+=1
if n==N-1:
if I[N-1]%2==0:
wari=wari*2
kazu=kazu+1
n=0
else:
X=0
break
print(kazu) |
s928324796 | p03493 | u158225062 | 1512963358 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 280 | # coding: utf-8
N = input()
array1 = input().split()
array = list(array1)
chk = 0
if (int(array[0])%2) != 0:
print("0")
else:
flg = 0
mini1 = min(array)
mini = int(mini1)
while 1:
if mini%2 != 0:
break
mini = mini/2
flg +=1
if mini == 0:
break
print(flg) |
s509567387 | p03493 | u158225062 | 1512962394 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 275 | # coding: utf-8
N = input()
array1 = input().split()
#array2 = int(array1)
array = list(array1)
chk = 0
if (int(array[0])%2) != 0:
print("0")
else:
flg = 0
mini1 = min(array)
mini = int(mini1)
while 1:
mini = mini/2
flg +=1
if mini%2 !== 0:
break
print(flg) |
s072919849 | p03493 | u779602548 | 1512960071 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | #http://abc081.contest.atcoder.jp/
# -*- coding: utf-8 -*-
a,b,c = map(int,input().split())
print(a+b+c)
|
s828168430 | p03493 | u225528554 | 1512959740 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 492 | if __name__=="__main__":
l1 = list(map(int,input().split(" ")))
l2 = list(map(int,input().split(" ")))
l = {i:0 for i in range(200001)}
N = l1[0]
K = l1[1]
for i in range(N):
l[l2[i]]+=1
dict = sorted(l.values())
condition = lambda t:t!=0
... |
s277409943 | p03493 | u502314533 | 1512959510 | Python | PyPy3 (2.4.0) | py | Runtime Error | 193 | 38640 | 431 | import sys
input = sys.stdin.readline
print = sys.stdout.write
n,k = map(int,input().split())
freq = {}
a = [int(i) for i in input().split()]
for i in a:
if i not in freq:
freq[i] = 1
else:
freq[i] += 1
total = 0
while len(freq.keys()) > k:
mn = (0,2000001)
for i in freq.keys():
... |
s734142249 | p03493 | u873262353 | 1512959058 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 156 | N = int(input())
A = [int(i) for i in input().split(' ')]
for i in range(10**9):
if sum([i%2 for i in A])>0:
print(i)
break
else: A = [i/2 for i in A] |
s968289581 | p03493 | u873262353 | 1512958943 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 153 | N = int(input())
A = [int(i) for i in input().split(' ')]
for i in range(N):
if sum([i%2 for i in A])>0:
print(i)
break
else: A = [i//2 for i in A] |
s580767314 | p03493 | u060464363 | 1512958810 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 167 | b = list(map(int, input().split()))
a = str(b)
ans = 0
if (a[1] == '1'):
ans = ans+1
if (a[2] == '1'):
ans = ans+1
if (a[3] == '1'):
ans = ans+1
print(ans) |
s955347914 | p03493 | u657357805 | 1512958780 | Python | Python (2.7.6) | py | Runtime Error | 13 | 2692 | 46 | print(sum([int(x) for x in input().split()]))
|
s583720033 | p03493 | u601913978 | 1512958484 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 97 | t=raw_input().split(“”)
count=0
for i in t:
if i == “1”:
count+=1
print count |
s798960389 | p03493 | u518455500 | 1512958284 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 35 | n = raw_input()
print(n.count("1")) |
s264775380 | p03493 | u826570725 | 1512958226 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 325 | # -*- coding: utf-8 -*-
import sys
N = int(sys.stdin.readline())
line = sys.stdin.readline()
A = [ int(i) for i in line.strip().split() ]
min = 999999
for a in A:
cnt = 0
while(min > cnt):
if a%2 == 1:
min = cnt
break
else:
a = a/2
cnt += 1
print(c... |
s328351393 | p03493 | u158225062 | 1512958221 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 209 | # coding: utf-8
N = input()
N_list = list(N)
N_len = len(N_list)
N_count = N_list("1")
if N_count ==0:
print("0")
elif N_count == 1:
print("1")
elif N_count == 2:
print("2")
elif N_count == 3:
print("3") |
s550712959 | p03493 | u873262353 | 1512958120 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 32 | S = raw_input()
(S == '1').sum() |
s752651960 | p03493 | u966000628 | 1512958013 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 107 | M = input()
lis =list(str(M))
count = 0
for item in lis:
if item == ‘1’:
count += 1
print (count) |
s281806496 | p03493 | u667024514 | 1512957986 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 45 | a = list(map(int,input()))
print a.count("1") |
s086418166 | p03493 | u667024514 | 1512957934 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 35 | a = int(input())
print a.count("1") |
s714433272 | p03493 | u966000628 | 1512957873 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 102 | M = input()
lis =list(M)
count = 0
for item in lis:
if item == ‘1’:
count += 1
print (count) |
s110824030 | p03493 | u667024514 | 1512957768 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 173 | a = int(input())
ans = 0
if a[0] == 1:
ans = ans+1
else:
ans = ans
if a[1] == 1:
ans = ans+1
else:
ans = ans
if a[2] == 1:
ans = ans+1
else:
ans = ans
print(ans) |
s929810282 | p03494 | u577139181 | 1600721656 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9000 | 220 | num = int(input())
vals = list(map(int,input().split()))
cnt = 0
while(True)
for i in range(num):
if vals[i] % 2 == 1:
print(cnt)
break
else:
vals[i] = vals[i] / 2
cnt += 1 |
s101520216 | p03494 | u963963908 | 1600035122 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9040 | 151 | def d(n):
while n%2 == 0:
n /= 2
ans += 1
return ans
n = int(input())
a = map(int,input().split())
t = min(list(map(d,a)))
print(t)
|
s679778292 | p03494 | u963963908 | 1600034579 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9032 | 147 | def d(n):
while n%2 == 0:
n/= 2
ans+= 1
return ans
n = int(input())
a = map(int,input().split())
ans = min(map(d,a))
print(ans)
|
s503814746 | p03494 | u963963908 | 1600034235 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9164 | 154 | def d(n):
while n%2 == 0:
n /= 2
ans += 1
return ans
n = int(input())
a = map(int,input().split())
ans = min(list(map(d,a)))
print(ans)
|
s518522305 | p03494 | u300651214 | 1600013135 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8848 | 175 | n = int(input())
li = list(map(int, input().split())
b = float('inf')
for a in li:
c = 0
while a%2 == 0:
a = a/2
c += 1
b = min(b,c)
print(b)
|
s518898795 | p03494 | u300651214 | 1600013034 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8780 | 169 | a = int(input())
li = list(map(int, input().split())
b = float()
for a in li:
c = 0
while a%2 == 0:
a = a/2
c += 1
b = min(b,c)
print(b)
|
s504616311 | p03494 | u300651214 | 1600012739 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9004 | 189 | a = int(input())
li = list(map(int, input().split())
b = float('inf')
for a in li:
c = 0
while a%2 == 0:
a = a/2
c += 1
b = min(b,c)
print(b)
|
s696387552 | p03494 | u300651214 | 1600012668 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8980 | 182 | a = int(input())
li = list(map(int, input().split())
b = float()
for a in li:
c = 0
while a%2 == 0:
a = a/2
c += 1
b = min(b,c)
print(b) |
s509837592 | p03494 | u568685305 | 1599623482 | Python | PyPy3 (7.3.0) | py | Runtime Error | 85 | 74728 | 388 | # coding: utf-8
N = int(input())
A = list(map(int, input().split()))
c = 0
count = 0
imp = 0
while imp == 0:
for i in range(0..N+1):
if A[i] % 2 == 0:
c += 1
continue
else:
imp = 1
break
if c == N and imp == 0:
for i in range(0..N+1):
... |
s204191074 | p03494 | u865343871 | 1599503960 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9180 | 257 | N = input()
A = list(map(int,input().split()))
ans = 0
def GCD(a,b):
if a < b:
a,b = b,a
while a % b != 0:
a,b = b, a % b
print(b)
if __name__ =="__main__":
for i in range(N-1):
ans = GCD(A[i],A[i+1])
print(ans)
|
s792862489 | p03494 | u559367141 | 1599346482 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9104 | 150 | n = int(input())
a = list(map(int, input().split()))
count = 0
while all(i % 2 == 0 for i in A):
a = [j/2 for j in a]
count += 1
print(count) |
s610444202 | p03494 | u559367141 | 1599345822 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9036 | 219 | n = int(input())
a = list(map(int, input().split()))
count = 0
while True:
if a[0]%2 == 0 and a[1]%2==0 and a[2]%2==0:
a = map(i//2 for i in range(n))
count += 1
else:
break
print(count) |
s030705302 | p03494 | u371350984 | 1599194742 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9072 | 345 | n = int(input())
a, b, c = map(int, input().split())
i = 0
while True:
a_ans = divmod(a, 2)
b_ans = divmod(b, 2)
c_ans = divmod(c, 2)
if a_ans[1] == 0 and b_ans[1] == 0 and c_ans[1] == 0 and a !=0 and b !=0 and c !=0:
i += 1
a = a_ans[0]
b = b_ans[0]
c = c_ans[0]
els... |
s395724811 | p03494 | u371350984 | 1599194316 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9196 | 315 | n = int(input())
a, b, c = map(int, input().split())
i = 0
while True:
a_ans = divmod(a, 2)
b_ans = divmod(b, 2)
c_ans = divmod(c, 2)
if a_ans[1] == 0 and b_ans[1] == 0 and c_ans[1] == 0:
i += 1
a = a_ans[0]
b = b_ans[0]
c = c_ans[0]
else:
break
print(i) |
s631062412 | p03494 | u845573105 | 1599138126 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9108 | 189 | N = int(input())
A = list(input().split())
ans = float("inf")
for i in range(N):
a = A[i]
ans_tmp = 0
while a%2==0:
a = a//2
ans_tmp += 1
ans = min(ans_tmp, ans)
print(ans) |
s981461750 | p03494 | u584153341 | 1599100621 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9000 | 226 | N = int(input()
A = map(int,input().split())
flg = True
cnt = 0
while flg = True:
for i in range(N):
if A[i]%2 = 1 then:
flg = False
break
cnt += 1
A = [a/2 for a in A]
print(cnt) |
s556352167 | p03494 | u440478998 | 1599100198 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9120 | 173 | n = int(input())
a = [map(int, input().split())]
l = [0 for i in range(n)]
for i in range(len(a)):
while a[i] % 2 == 0:
a[i] /= 2
l[i] += 1
print(min(l)) |
s692154722 | p03494 | u440478998 | 1599100154 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9180 | 178 | n = int(input())
a = [int(input()) for i in range(n)]
l = [0 for i in range(n)]
for i in range(len(a)):
while a[i] % 2 == 0:
a[i] /= 2
l[i] += 1
print(min(l)) |
s096150153 | p03494 | u795733769 | 1598885433 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9016 | 272 | N = input()
A = list(map(int, input().split()))
cnt = 0
while True:
odd_flag = False
for i in range(N):
if A[i] % 2 == 1:
odd_flag = True
if odd_flag:
break
for i in range(N):
A[i] = A[i] // 2
cnt += 1
print(cnt)
|
s998355090 | p03494 | u620846115 | 1598882996 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9096 | 118 | n=int(input())
a = list(map(int,input().split()))
count =1
while all(a[i]%(2**count)==0):
count+=1
print(count-1)
|
s636659908 | p03494 | u620846115 | 1598882863 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9180 | 159 | n=int(input())
a = list(map(int,input().split()))
count =1
for i in range(n):
if all(a[i]%(2**count)==0):
count+=1
else:
print(count-1)
break |
s729869959 | p03494 | u620846115 | 1598882476 | Python | Python (3.8.2) | py | Runtime Error | 20 | 9180 | 160 | n=int(input())
a = [list(map(int,input().split()))]
count =1
for i in range(n):
if all(a[i]%(2**count)==0):
count+=1
else:
print(count-1)
break |
s546059801 | p03494 | u620846115 | 1598882397 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9052 | 183 | n=int(input())
a = [list(map(int,input().split()))]
count =1
while True:
for i in range(n):
if all(a[i]%(2**count)==0):
count+=1
else:
print(count-1)
break |
s764777470 | p03494 | u620846115 | 1598882300 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9064 | 199 | n=int(input())
a = [list(map(int,input().split()))]
count =0
while True:
for i in range(n):
if all(a[i]%2==0):
all(a[i]==a[i]/2)
count+=1
else:
print(count)
break
|
s017737596 | p03494 | u468972478 | 1598800153 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9116 | 187 | n = int(input())
a = map(int, input().split())
while True:
for i in range(n):
if a[i] % 2 == 1:
break
a[i] = a[i] // 2
else:
ans += 1
continue
break
print(ans) |
s008347029 | p03494 | u468972478 | 1598800032 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9056 | 181 | n = int(input())
a = map(int, input().split())
while True:
for i in range(n):
if a[i] % 2 == 1:
break
a[i] //= 2
else:
ans += 1
continue
break
print(ans) |
s314078446 | p03494 | u957275485 | 1598725243 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9172 | 160 | #3
#8 12 40
n=int(input())
ai=list(map(int(),input.split()))
b=[]
for a in ai:
count =0
while a%2==0 :
count+=1
a/=2
b.append(count)
print(min(b)) |
s392074792 | p03494 | u957275485 | 1598725218 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8984 | 162 | #3
#8 12 40
n=int(input())
ai=list(map(int(),input().split()))
b=[]
for a in ai:
count =0
while a%2==0 :
count+=1
a/=2
b.append(count)
print(min(b)) |
s992304867 | p03494 | u957275485 | 1598725161 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9036 | 160 | #3
#8 12 40
n=int(input())
ai=list(map(int(),input.split()))
b=[]
for a in ai:
count =0
while a%2==0 :
count+=1
a/=2
b.append(count)
print(min(b)) |
s216217277 | p03494 | u957275485 | 1598725101 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9012 | 158 | #3
#8
n=int(input())
ai=list(map(int(),input.split()))
for a in ai:
count =0
while a%2==0 :
count+=1
a/=2
b.append(count)
print(min(b)) |
s457968031 | p03494 | u957275485 | 1598725051 | Python | Python (3.8.2) | py | Runtime Error | 29 | 9060 | 167 | #3
#8 12 40
n=int(input())
ai=list(map(int(),input.split()))
for a in ai:
count =0
while a%2==0 :
count+=1
a/=2
b.append(count)
print(min(b))
|
s980301480 | p03494 | u078214750 | 1598662440 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8816 | 132 | n = input()
a = list(map(int, input().split())
ans = 0
while all(_%2 == 0 for _ in a):
a = [_/2 for _ in a]
ans += 1
print(ans) |
s313939430 | p03494 | u855057563 | 1598460709 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9116 | 130 | n=int(input())
s=list(map(it,input().split()))
count=-0
while all(i%2==0 for i in s):
s=[i/2 for i in s]
count+=1
print(count) |
s967115266 | p03494 | u877283726 | 1598307832 | Python | PyPy3 (7.3.0) | py | Runtime Error | 88 | 74672 | 245 | N = gets.to_i
A = gets.split(' ').map(&:to_i)
ans = 0
while A[0] > 1 do
for i in 0..N-1 do
if A[i] % 2 == 0 then
A[i] /= 2
else
puts ans
exit
end
end
ans += 1
end
puts ans |
s315429032 | p03494 | u023127434 | 1598150196 | Python | Python (3.8.2) | py | Runtime Error | 19 | 8780 | 143 | n = int(input())
l = list(map(int, input().split()))
cnt = 0
while all(a % 2 == 0 for a in l):
l = [a / 2 for a in l]
cnt += 1
print(cnt) |
s065289242 | p03494 | u023127434 | 1598150148 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8972 | 143 | n = int(input())
l = 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) |
s253753815 | p03494 | u023127434 | 1598150135 | Python | Python (3.8.2) | py | Runtime Error | 29 | 8956 | 145 | n = int(input())
l = 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(count) |
s019789167 | p03494 | u310381103 | 1598073558 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8920 | 183 | import(sys)
n=int(input())
a = list(map(int,input().split()))
b=0
while(True):
for i in range(n):
if(a[i]%2!=0):
print(b)
sys.exit()
a[i]=a[i]//2
b+=1
print(b) |
s058857591 | p03494 | u703180353 | 1597951724 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9080 | 124 | n = input()
l = input().split()
cnt = 0
while len([True for x in l if x%2==0]):
l = [x/2 for x in l]
cnt += 1
print(cnt) |
s929910951 | p03494 | u703180353 | 1597951608 | Python | Python (3.8.2) | py | Runtime Error | 23 | 8912 | 124 | n = input()
l = input().split()
cnt = 0
while len([True for x in l if l%2==0]):
l = [x/2 for x in l]
cnt += 1
print(cnt) |
s491186105 | p03494 | u703180353 | 1597951530 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9096 | 112 | l = input().split()
cnt = 0
while len([True for x in l if l%2==0]):
l = [x/2 for x in l]
cnt += 1
print(cnt) |
s439374865 | p03494 | u253205825 | 1597789614 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9148 | 179 | n = int(input())
m = float("inf")
a = list(map((int, input().split())))
for i in range(a):
if m > len(bin(i))-bin(i).rfind("1")-1:
m = len(bin(i))-bin(i).rfind("1")-1
print(m)
|
s286906762 | p03494 | u253205825 | 1597789553 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9052 | 189 | import sys
n = int(input())
m = float("inf")
a = list(map((int, input().split())))
for i in range(a):
if m > len(bin(i))-bin(i).rfind("1")-1:
m = len(bin(i))-bin(i).rfind("1")-1
print(m) |
s596998754 | p03494 | u253205825 | 1597729352 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9084 | 167 | import sys
n = int(input())
a = [map(int, input().split())]
p = 1
for i in range(n):
p = p*a[i]
for k in range(6*n):
l = p%(2**k)
if l == 1:
print(k)
sys.exit() |
s808168795 | p03494 | u561478555 | 1597461255 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9196 | 246 | a = int(input())
b = list(map(int, input().split()))
count = 0
while(true):
flag = 0
for i in range(0, a, 1):
if (b[i] % 2 == 1) :
flag = 1
if flag == 1:
break
for i in range(0, a, 1):
b[i] /= 2
count += 1
print(count) |
s863910311 | p03494 | u561478555 | 1597461088 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9032 | 207 | a = int(input())
b = list(map(int, input().split()))
count = 0
while(true):
for i in range(0, a, 1):
if (b[i] % 2 == 1) :
break;
for i in range(0, a, 1):
b[i] /= 2
count += 1
print(count) |
s157748193 | p03494 | u561478555 | 1597461042 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9208 | 217 | a = int(input()) // 値の数
b = list(map(int, input().split()))
count = 0
while(1):
for i in range(0, a, 1):
if (b[i] % 2 == 1) :
break;
for i in range(0, a, 1):
b[i] /= 2
count += 1
print(count) |
s476206100 | p03494 | u561478555 | 1597460975 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9072 | 219 | a = int(input()) // 値の数
b = list(map(int, input().split()))
count = 0
while(1):
for i in range(0, a, 1):
if (b[i] % 2 == 1) :
break;
for i in range(0, a, 1):
b[i] /= 2
count += 1
print(count) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.