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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s299846173 | p03644 | u503227287 | 1588169685 | Python | PyPy3 (2.4.0) | py | Runtime Error | 171 | 38384 | 314 | from sys import stdin
import math
if __name__ == "__main__":
_in = [_.rstrip() for _ in stdin.readlines()]
N = int(_in[0]) # type:int
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
cnt = 2**math.floor(math.log2(N))
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
print(cnt)
|
s733375383 | p03644 | u728774856 | 1587861880 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 217 | num = int(input())
count_max = 0
for i in range(num):
tmp = i + 1
count = 0
while tmp % 2 == 0:
tmp = tmp / 2
count += 1
if count > count_max:
count_max = count
num_max = i + 1
print(num_max) |
s418124414 | p03644 | u728774856 | 1587861796 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 217 | num = int(input())
count_max = 0
for i in range(num):
tmp = i + 1
count = 0
while tmp % 2 == 0:
tmp = tmp / 2
count += 1
if count > count_max:
count_max = count
num_max = i + 1
print(num_max) |
s865400741 | p03644 | u728774856 | 1587861182 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 177 | num = int(input())
count_max = 0
for i in range(num)
tmp = i
count = 0
while tmp % 2 == 0:
tmp = tmp / 2
count += 1
if conut > count_max:
count_max = count
|
s002394999 | p03644 | u593567568 | 1587769897 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 101 | N = int(intpu())
ans = 1
while True:
ans *= 2
if N < ans:
ans //= 2
break
print(ans) |
s642029721 | p03644 | u765690804 | 1587739719 | Python | PyPy3 (2.4.0) | py | Runtime Error | 169 | 38640 | 70 | import math
n = int(input())
print(pow(2, math.floor(math.log2(n))))
|
s826773724 | p03644 | u854550470 | 1587678115 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 108 | n = int(input())
nums = [2**i for i in range(1,7)]
ans = [i - n for i in nums if (i - n) >= 0]
print(ans[0]) |
s630011886 | p03644 | u211236379 | 1587519485 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 156 | N = int(input())
two_list = [1, 2, 4, 8, 16,32,64]
for two in two_list:
if N > two:
if two == 64:
print(64)
else:
print(two)
exit()
|
s769067963 | p03644 | u642418876 | 1587494516 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3188 | 119 | n=int(input())
l=[]
for i in range(1,n+1):
for j in range(n//2):
if i%(2**j):
l.append(2**j)
print(max(l))
|
s517634673 | p03644 | u997641430 | 1587371229 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 186 | n = int(input())
# n = 100
m = 0
for i in range(1, n+1):
a = i
c = 0
while a % 2 == 0:
a = a//2
c += 1
if c > m:
x = i
m = max(m, c)
print(x)
|
s507188829 | p03644 | u652656291 | 1587128157 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 88 | n = int(input())
l = []
for i in range(1,n**(0.5)):
a = 2*i
l.append(a)
print(l[-1]) |
s165828938 | p03644 | u652656291 | 1587128119 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 88 | n = int(input())
l = []
for i in range(1,n**(0.5)):
a = i*i
l.append(a)
print(l[-1]) |
s638838220 | p03644 | u652656291 | 1587128088 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 81 | n = int(input())
l = []
for i in range(1,n**(0.5)):
l.append(i**2)
print(l[-1]) |
s725523369 | p03644 | u121434459 | 1587104231 | Python | Python (3.4.3) | py | Runtime Error | 152 | 12424 | 289 | import numpy
s = int(input())
total = []
for i in range(s):
t = i + 1
count = 0
if t % 2 == 1:
total.insert(i,count)
while t % 2 == 0:
t = t / 2
count += 1
total.insert(i,count)
del total[s]
max_index = numpy.argmax(total)
print(max_index+1) |
s368486152 | p03644 | u858670323 | 1587077190 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 63 | n = int(input())
ans=0
while(n%2==0):
ans++
n/=2
print(ans) |
s604934699 | p03644 | u506549878 | 1586954082 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3188 | 335 | n = int(input())
data = [i*2 for i in range(1,n//2+1)]
def f(x):
cnt = 0
flg = 0
while flg==0:
if x%2==0:
cnt += 1
x = x/2
else:
flg = 1
return cnt
aim = 0
for i in data:
if aim < f(i):
aim = f(i)
num = i
else:
continue... |
s847518640 | p03644 | u223555291 | 1586828791 | Python | Python (3.4.3) | py | Runtime Error | 2108 | 2940 | 155 | a=int(input())
b=0
c=[0]*a
for i in range(1,a+1):
b=0
e=i
while 1:
i%=2
if i%2!=0:
c[e]=b
break
b+=1
print(max(c))
|
s862549461 | p03644 | u223555291 | 1586828734 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 2940 | 149 | a=int(input())
b=0
c=[0]*a
for i in range(1,a+1):
e=i
while 1:
i%=2
if i%2!=0:
c[e]=b
break
b+=1
print(max(c))
|
s812346054 | p03644 | u223555291 | 1586828662 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 142 | a=int(input())
b=0
c=[0]*a
for i in range(1,a+1):
while 1:
b%=2
if b%2!=0:
c[i]=b
break
b+=1
print(max(c))
|
s340602804 | p03644 | u384124931 | 1586826947 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 101 | N = int(input())
K = 0
while True:
if 2**k <= N < 2**(k+1):
print(2**k)
break
else:k += 1 |
s069741494 | p03644 | u457290011 | 1586805833 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 409 | n = int(input())
box = []
prime = []
ans = 0
def Prime_Factorization(n):
i = 2
prime_factors = []
while n > 1:
if n % i == 0:
prime_factors.append(i)
n = n / i
else:
i += 1
return prime_factors
for i in range(1,n):
prime = Prime_Factorization(i)
... |
s320275676 | p03644 | u457290011 | 1586805787 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 402 | n = int(input())
box = []
prime = []
def Prime_Factorization(n):
i = 2
prime_factors = []
while n > 1:
if n % i == 0:
prime_factors.append(i)
n = n / i
else:
i += 1
return prime_factors
for i in range(1,n):
prime = Prime_Factorization(i)
box... |
s665143302 | p03644 | u581603131 | 1586786558 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 90 | N = int(input())
ans = 1
for i in range(7):
if N >= 2**i
ans = 2**i
print(ans) |
s471603510 | p03644 | u201928947 | 1586780748 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | n = int(input())
for i in range(8):
if int(2**(7-i)) <= n:
print(2**(7-i)
exit() |
s228148765 | p03644 | u852790844 | 1586659769 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 79 | n = int(input())
for i in range(1,10)
if 2**i > n:
print(2**(i-1))
|
s437208179 | p03644 | u189397279 | 1586360378 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 186 |
if 1 <= N <2:
print(1)
if 2 <= N <4:
print(2)
if 4 <= N <8:
print(4)
if 8 <= N <16:
print(8)
if 16 <= N <32:
print(16)
if 32 <= N <64:
print(32)
if 64 <= N <100:
print(64) |
s778035237 | p03644 | u394731058 | 1585696464 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 87 | n = int(input())
l =[64,32,16,8,4,2,1]
for i ib l:
if i <= n:
print(i)
break; |
s827382230 | p03644 | u168778320 | 1584939988 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 250 | N = int(input())
min = 0
max = 0
for i in range(N):
if 2**i <= N:
min = i
else:
break
print(min)
N = int(input())
min = 0
max = 0
for i in range(N):
if 2**i <= N:
min = i
else:
break
print(min)
|
s611505008 | p03644 | u611033537 | 1584816664 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | N = int(input())
i = 1
for i in range(1,10):
if 2 ** i <= N:
ans = 2*i
print(ans) |
s835844744 | p03644 | u260036763 | 1584753665 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 56 | N = input()
ans = 1
while ans < N:
ans *= 2
print(ans) |
s367057059 | p03644 | u260036763 | 1584753597 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 54 | N = input()
ans = 1
while a < N:
ans *= 2
print(ans) |
s012386865 | p03644 | u163874353 | 1584188903 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 218 | n = int(input())
l =[]
for i in range(1,n + 1):
cnt = 0
while i % 2 == 0 and i > 1:
cnt += 1
i = i / 2
if cnt >= 1:
l.append(int(i * 2 ** cnt))
print(max(l))
|
s488438492 | p03644 | u299251530 | 1584037403 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 192 | n=int(input())
result = 0
for i in range(n):
a = n-i
while True:
if a % 2 == 1:
break
else:
if a == 2:
print(n-i)
sys.exit()
else:
a /= 2
|
s116085796 | p03644 | u744034042 | 1583016465 | Python | Python (3.4.3) | py | Runtime Error | 149 | 12504 | 183 | n = input()
import numpy as np
a = list(range(1,n+1))
b = list(range(1,n+1))
c = [0] * n
for i in range(n):
while a[i] % 2 ==0:
a[i] /= 2
c[i] += 1
print(b[np.argmax(c)])
|
s619903257 | p03644 | u744034042 | 1582867337 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 193 | n = input()
queue1 = list(range(1,n+1))
queue2 = list(range(1,n+1))
count = [0] * n
for i in range(n):
while queue1[i] % 2 == 0:
count[i] += 1
queue1[i] /= 2
print(queue2[max(count)]) |
s886083560 | p03644 | u789565565 | 1582175942 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | n = input()
for i in range(6):
if 2**i <= n and 2**(i+1) > n:
print(2**i)
|
s435940481 | p03644 | u750838232 | 1582163824 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 87 | n = int(input())
a = [2**i for i in range(1, 7)]
print(max([x for x in a if x <= n])) |
s838274509 | p03644 | u505793792 | 1581732620 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 140 | A = int(input())
i = 0
while (2 ** i) <= A:
if (2 ** i) = A:
print(A)
break
else:
i += 1
print(2 ** (i - 1)) |
s707253521 | p03644 | u133936772 | 1581603030 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 59 | ans = 1
while ans <= int(input())//2:
ans *= 2
print(ans) |
s666401997 | p03644 | u368796742 | 1581564871 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 153 | n = int(input())
ans = 1
for i in range(10):
if ans < n:
ans *= 2
elif ans > n:
print(ans //= 2)
exit()
else:
print(ans)
exit() |
s715226962 | p03644 | u035445296 | 1581018852 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | N = int(input())
a = [N-2**i for i in range(0,7) if N-2**i > 0]
min_index = a.index(min(a))
print(2**min_index) |
s469872202 | p03644 | u442877951 | 1580227309 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 71 | N = int(input())
k = 0
while k**2 > N:
ans = k**2
k += 1
print(ans) |
s999284489 | p03644 | u442877951 | 1580226521 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | N = map(int, input().split())
count = 0
while N % 2 == 0:
N / 2
count += 1
print(count) |
s993072990 | p03644 | u442877951 | 1580226446 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 90 | N = map(int, input().split())
count = 0
while N % 2 == 0:
N / 2
count ++
print(count) |
s223862006 | p03644 | u468206018 | 1579882593 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 87 | n = int(input())
a = 1
wihle(1):
if a<=n:
a*=2
else:
print(a//2)
exit() |
s919711371 | p03644 | u167908302 | 1579409850 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 132 | #coding:utf-8
n = int(input())
two = [1, 2, 4, 8, 16, 32, 64]
ans = 0
for i in two:
if two <= n:
ans = two
print(ans) |
s122965170 | p03644 | u606043821 | 1579365056 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 257 | ソースコード
Copy
Copy
def divisible(n):
ans = 0
while n%2 == 0:
n /=2
ans +=1
return ans
N = int(input())
b = 0
for i in range(N):
if(divisible(i) > b):
b = divisible(i)
ans = i
print(max(ans)) |
s672392038 | p03644 | u686036872 | 1578990550 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 83 | N=int(input())
for i in range(7):
x=2**(i-0)
if x<=N:
max=max(x)
print(x) |
s879205360 | p03644 | u121921603 | 1578763657 | Python | PyPy3 (2.4.0) | py | Runtime Error | 164 | 38256 | 248 | """import sys
input = sys.stdin.readline"""
n=int(input())
if n==32:
print(32)
exit()
cntm=0
for i in range(1,n+1):
a=i
cnt=0
while a%2==0:
a//=2
cnt+=1
if cntm<cnt:
ans=i
cntm=cnt
print(ans)
|
s770387527 | p03644 | u121921603 | 1578763571 | Python | PyPy3 (2.4.0) | py | Runtime Error | 183 | 38384 | 213 | """import sys
input = sys.stdin.readline"""
n=int(input())
cntm=0
for i in range(1,n+1):
a=i
cnt=0
while a%2==0:
a//=2
cnt+=1
if cntm<cnt:
ans=i
cntm=cnt
print(ans)
|
s719996905 | p03644 | u121921603 | 1578763451 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 207 | import sys
input = sys.stdin.readline
n=int(input())
cntm=0
for i in range(1,n+1):
a=i
cnt=0
while a%2==0:
a//=2
cnt+=1
if cntm<cnt:
ans=i
cntm=cnt
print(ans)
|
s863273961 | p03644 | u121921603 | 1578762849 | Python | PyPy3 (2.4.0) | py | Runtime Error | 164 | 38384 | 207 | import sys
input = sys.stdin.readline
n=int(input())
cntm=0
for i in range(1,n+1):
a=i
cnt=0
while a%2==0:
a//=2
cnt+=1
if cntm<cnt:
ans=i
cntm=cnt
print(ans)
|
s226426957 | p03644 | u968404618 | 1578400000 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 297 | n = int(input())
cont = 0
cont_list = [1]
cont_num =[]
for i in range(1, n+1):
cont_num.append(i)
while i % 2 == 0:
i //= 2
cont += 1
cont_list.append(cont)
cont = 0
if max(cont_list) == 1:
print(1)
else:
print(cont_num[cont_list.index(max(cont_list))]) |
s723773558 | p03644 | u485566817 | 1578364418 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 68 | n = int(input())
ans = 1
whille ans*2 <= n:
ans *= 2
print(ans) |
s061213379 | p03644 | u485566817 | 1578364351 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 68 | n = int(input())
ans = 1
whille ans*2 <= n:
ans += 2
print(ans) |
s603245575 | p03644 | u185405877 | 1578192243 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 68 | count=0
n=int(input())
while n%2=!1:
n=n/2
count+=1
print(count) |
s746299071 | p03644 | u185405877 | 1578192212 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 58 | count=0
n=int(input())
while n%2=!1:
n=n/2
count+=1
|
s186032926 | p03644 | u581187895 | 1578018132 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 214 | N = int(input())
even_A = list(range(2, N+1, 2))
dic = {}
for a in even_A:
x = a
cnt = 0
while x%2 == 0:
x /= 2
cnt += 1
dic[a] = cnt
ans = sorted(dic.items(), key=lambda x:x[1])[-1]
print(ans[0]) |
s790879729 | p03644 | u226191225 | 1577876282 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 120 | n = str(input())
ans = 1
for i in range(1,n):
if i ** 2 > n:
break
else:
ans = i ** 2
print(ans) |
s518187024 | p03644 | u898967808 | 1577680086 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 81 | a,b,c = map(int,input().split())
if b-a == c-b:
print('YES')
else:
print('NO') |
s794271733 | p03644 | u311669106 | 1577119139 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 124 | n=int(input())
ln=[0]*n
for a in range(n):
if a %2 ==0:
ln[a-1}=a//2
else:
ln[a-1]=0
print(max(ln)) |
s395793692 | p03644 | u609814378 | 1577030390 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | N = int(input())
ans = 1
for i in range(8):
if(n >= 2 ** i):
ans = 2 ** i
print(ans) |
s115775261 | p03644 | u695079172 | 1576985322 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3188 | 153 | import math
n = int(input())
answer = 1
for i in range(1,n+1):
temp = math.log2(i)
if temp >= math.log2(answer):
answer = temp
print(answer)
|
s044745975 | p03644 | u695079172 | 1576984851 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3188 | 112 | import math
n = int(input())
if n%2 == 0:
print(math.log2(n))
else:
print(math.log2(n-1))
|
s792329154 | p03644 | u561883765 | 1576684979 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 207 | n = int(input())
count1 = 0
for i in range(1,n):
a = i%2
b = i/2
count = 1
while a ==0:
a = b%2
b = b/2
count += 1
if count > count1:
count1 = count
max_num = i
print(max_num) |
s899170972 | p03644 | u311669106 | 1576614642 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 124 | ln=[n for n in range(int(input()))]
cnt=[0]*n
for n in ln:
while n%2==0:
cnt[n-1]+=1
print((max(cnt)).index()+1) |
s878432009 | p03644 | u288786530 | 1575788324 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 200 | l = list()
n = int(input())
original_list = list(range(1,n))
for x in original_list:
ans = 0
while x % 2 == 0:
x = x / 2
ans = ans + 1
l.append(ans)
print(max(l))
|
s946694733 | p03644 | u288786530 | 1575788230 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 222 | l = list()
original_list = list()
n = int(input())
original_list = list(range(1,n))
for x in original_list:
ans = 0
while x % 2 == 0:
x = x / 2
ans = ans + 1
l.append(ans)
print(max(l))
|
s742278120 | p03644 | u288786530 | 1575787800 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 200 | l = list()
n = int(input())
original_list = list(range(1,n))
for num in original_list:
ans = 0
while x % 2 == 0:
x = x / 2
ans = ans + 1
l.append(ans)
print(max(l)) |
s976490871 | p03644 | u288786530 | 1575787741 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 200 | l = list()
n = int(input())
original_list = list(range(1,n))
for x in original_list:
ans = 0
while x % 2 == 0:
x = x / 2
ans = ans + 1
l.append(ans)
print(max(l))
|
s402300123 | p03644 | u225388820 | 1574999514 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 131 | a=[2**i for i in range(7)]
import bisect
n=int(input())
s=bisect.bisect_left(a,n)
if n==a[s]:
print(n)
exit()
print(a[s-1]) |
s123353927 | p03644 | u469700628 | 1574834450 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 319 | N = int(input())
# res = [x for x in range(1, N + 1)]
result = {}
# for i in res:
for i in range(1, N + 1):
result[i] = 0
tmp = i
while True:
if tmp % 2 == 0:
tmp = tmp / 2
result[i] += 1
else:
break
print(sorted(result.items(), key=lambda x: -x[1])[0][0] |
s270255350 | p03644 | u469700628 | 1574834218 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 295 | N = int(input())
res = [x for x in range(1, N + 1)]
result = {}
i = 0
for i in res:
result[i] = 0
tmp = i
while True:
if tmp % 2 == 0:
tmp = tmp / 2
result[i] += 1
else:
break
print(sorted(result.items(), key=lambda x: -x[1])[0][0] |
s110692478 | p03644 | u186729829 | 1574450170 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 153 | n = int(input())
a = []
for i in range(1,n+1):
cnt = 0
while i % 2 == 0:
i //= 2
cnt += 1
a.append(cnt)
print(2**max(a))
|
s895781644 | p03644 | u470359972 | 1573235511 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 71 | n=int(input())
a=0
for i in 100:
if a<n:
a=2^(i+1)
print(2^(i-1)) |
s288852820 | p03644 | u633548583 | 1573086463 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 38 | N=int(input())
print(2**len(bin(N)-3)) |
s534441790 | p03644 | u633548583 | 1573085501 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 145 | N=int(input())
while i<N+1:
count(i)=o
if i%2==0:
count(i)+=1
else:
break
if count(a)=max(count(i)):
print(a)
|
s744572499 | p03644 | u735069283 | 1572447276 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 157 | n = int(input())
a = list(map(int,input().split()))
result = float('inf')
for i in a:
result = min(result,len(bin(i))-bin(i).rfind('1')-1)
print(result) |
s531820906 | p03644 | u042802884 | 1572148082 | Python | PyPy3 (2.4.0) | py | Runtime Error | 169 | 38256 | 149 | N=int(input())
if N<2:
x=1
elif N<4:
x=2
elif N<8:
x=4
elif N<16:
x=8
elif n<32:
x=16
elif n<64:
x=32
else:
x=64
print(x) |
s149776031 | p03644 | u042802884 | 1572118470 | Python | PyPy3 (2.4.0) | py | Runtime Error | 175 | 38384 | 62 | N=int(input())
p=0
while N%==0:
p+=1
N//=2
print(2**p) |
s314416830 | p03644 | u044097841 | 1571509112 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 236 | N = int(input())
ans = 0
for i in range(1,N+1):
counter = 0
real_number = i
while i %2 == 0:
i //= 2
counter += 1
if counter > ans:
ans = counter
ans_number = real_number
print(ans_number) |
s288755828 | p03644 | u455533363 | 1571351361 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 66 | n = int(input())
while (2**i <= n):
i += 1
print(2**(i-1)) |
s019112024 | p03644 | u455533363 | 1571351201 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 68 | n = int(input())
i=0
while (2**i <= n):
i += 1
print(2**(i-1)) |
s782103187 | p03644 | u203383537 | 1570301817 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 200 | n=int(input())
max=0
for i in range(1,n+1):
count=0
x=i
while i%2 == 0:
count +=1
i /=2
if count > max:
max=count
ans=x
print(ans) |
s266145210 | p03644 | u602863587 | 1570244956 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 63 | n=int(input())
for i in (1,n):
if 2**i>n
print(2**(i-1)) |
s012985075 | p03644 | u753682919 | 1570069193 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 127 | n=input()
l=list(range(1,n))
m=0
def c(n):
return n/2
while any(i%2==0 for i in l):
l=map(c,l)
m+=1
print(2**m) |
s969371102 | p03644 | u753682919 | 1570068695 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 112 | n=input()
l=list(range(1,n))
m=0
while any(i%2==0 for i in l):
l=[i/2 for i in l]
m+=1
print(2**m) |
s488131564 | p03644 | u753682919 | 1570068372 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | n=input()
l=range(1,n)
m=0
while any(i%2==0 for i in l):
l=[i/2 for i in l]
m+=1
print(2**m) |
s606727810 | p03644 | u753682919 | 1570068344 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 106 | n=input()
l=range(1,n)
m=0
while any(i&2==0 for i in l):
l=[i/2 for i in l]
m+=1
print(2**m) |
s192890833 | p03644 | u753682919 | 1570067356 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 100 | n=input()
l=(range(n+1))[1:]
while any(i%2==0 for i in l):
l=[i/2 i%2==0 for i in l]
print(int(n)) |
s831805320 | p03644 | u174273188 | 1568744958 | Python | PyPy3 (2.4.0) | py | Runtime Error | 175 | 38384 | 127 | import math
def resolve():
n = int(input())
print(2 ** int(math.log2(n)))
if __name__ == "__main__":
resolve()
|
s200510880 | p03644 | u819710930 | 1568384406 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 175 | n=int(input())
if n==1:
print(n):
exit()
i=2
for _ in range(9):
i**=2
if i==n:
print(i)
exit()
elif i>n:
print(i//2)
exit() |
s471734391 | p03644 | u891518152 | 1568050002 | Python | PyPy3 (2.4.0) | py | Runtime Error | 171 | 38640 | 148 | import numpy as np
N = int(input())
a = [1, 2, 4, 8, 16, 32, 64]
b = []
for i in range(len(a)):
if a[i]<=N:
b.append(a[i])
print(max(b)) |
s383366882 | p03644 | u636822224 | 1567630583 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | n=int(input())
for i in range(math.inf):
if 2**i < n:
continue
else:
print(2**(i-1))
break |
s155336145 | p03644 | u636822224 | 1567630513 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 96 | n=int(input())
for i in range(math.inf):
if 2**i < n:
continue
else:
print(2**(i-1)) |
s020688546 | p03644 | u636822224 | 1567620670 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 94 | n=int(input())
for i in range(math.inf):
if n%2==0:
print(n)
break
else:
n=n/2 |
s375139907 | p03644 | u636822224 | 1567620219 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 112 | a=int(input())
cnt=0
for i in range(math.inf):
if a%2==0:
cnt+=1
a/=2
else:
print(cnt)
break |
s319856529 | p03644 | u636822224 | 1567620163 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 105 | a=int(input())
cnt=0
for i in range(math.inf):
if a%2==0:
cnt+=1
a/=2
else:
print(cnt)
|
s510150439 | p03644 | u252828980 | 1567565559 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 249 | n = (int(input()))
li = []
for i in range(1,n+1):
if i%2 == 0:
li.append(i)
li = [bin(x) for x in li]
li = li[::-1]
for i in range(len(li)):
if li[i].count(str(1)) == 1:
a=((li[i].count(str(0)) -1))
break
print(2**a) |
s178832696 | p03644 | u572142121 | 1567532984 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 63 | n = 0
while 2**n <= (int(input())):
n += 1
print(2**(n-1))
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.