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
s211135420
p03644
u572142121
1567532961
Python
Python (3.4.3)
py
Runtime Error
18
2940
61
n = 0 while 2**n <= int(input()): n += 1 print(2**(n-1))
s210607701
p03644
u555356625
1567114475
Python
Python (3.4.3)
py
Runtime Error
17
2940
77
n = int(input()) for i in range(7): if n > 2**i: ans = 2**i print(ans)
s770756577
p03644
u440566786
1566990687
Python
PyPy3 (2.4.0)
py
Runtime Error
176
38640
57
import math print(2**math.floor(math.log2(int(input()))))
s269592372
p03644
u957167787
1566872799
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
N = int(input()) ans = 1 for i in range(7) if 2**i < N: ans = 2**i else: break print(ans)
s988252127
p03644
u587213169
1566591355
Python
Python (3.4.3)
py
Runtime Error
17
2940
45
N=int(input()) a=math.log2(N) print(round(a))
s458635937
p03644
u643714578
1566493777
Python
Python (3.4.3)
py
Runtime Error
17
2940
77
N = int(input()) for i in range(6): if 2**(i+1)<=N: a=2**(i+1) print(a)
s895004544
p03644
u835482198
1566165967
Python
Python (3.4.3)
py
Runtime Error
17
2940
256
# https://atcoder.jp/contests/abc068/tasks/abc068_b def two_factor(x): cnt = 0 while x % 2 == 0: cnt += 1 x //= 2 return cnt N = int(input()) a = map(two_factor, range(1, N + 1)) max_cnt = max(a) print(a.index(max_cnt) + 1)
s317711984
p03644
u835482198
1566165922
Python
Python (3.4.3)
py
Runtime Error
21
2940
276
# https://atcoder.jp/contests/abc068/tasks/abc068_b def two_factor(x): cnt = 0 while x % 2 == 0: cnt += 1 x //= 2 return cnt N = int(input()) a = map(two_factor, range(1, N + 1)) max_cnt = max(a) print(list(range(1, N + 1)).index(max_cnt) + 1)
s024471167
p03644
u438662618
1566150011
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
n = int(input()) for i in range(7) : if (2**i) < n : ans = 2**i print(ans)
s258804458
p03644
u438662618
1566149955
Python
Python (3.4.3)
py
Runtime Error
18
2940
90
n = int(input()) for i in range(1, 7) : if (2**i) < n : ans = 2**i print(ans)
s801709259
p03644
u896741788
1566101542
Python
Python (3.4.3)
py
Runtime Error
18
2940
68
n=int(input()) for i in range(7): print(i) if 2**i <= n < 2**(i+1)
s818384943
p03644
u896741788
1566101496
Python
Python (3.4.3)
py
Runtime Error
17
2940
68
n=int(input()) for i in range(7): print(i) if 2**i <= n < 2++(i+1)
s409604677
p03644
u896741788
1566101476
Python
Python (3.4.3)
py
Runtime Error
18
3064
63
n=input() for i in range(7): print(i) if 2**i <= n < 2++(i+1)
s949689055
p03644
u360038884
1565980294
Python
Python (3.4.3)
py
Runtime Error
17
2940
80
N = int(input()) exp = 0 for N >= 2: N = N // 2 exp += 1 print(2 ** exp)
s824299116
p03644
u284999381
1565970669
Python
Python (3.4.3)
py
Runtime Error
17
2940
146
ans = 10**2 N = int(input()) for i in N: p = 0 while i % 2 == 0: i //= 2 p += 1 if p < ans: ans = p print(ans)
s498838714
p03644
u989157442
1565937178
Python
Python (3.4.3)
py
Runtime Error
18
2940
97
n = int(input()) l = [1, 2, 4, 8, 16, 32, 64] i = 0 while l[i] < n: i += 1 else: print(l[i])
s239503178
p03644
u371530330
1565935371
Python
Python (3.4.3)
py
Runtime Error
21
2940
156
n = int(input()) I_J = {} for i in range(1,n+1): for j in range(1,n+1): if i%(2**j) == 0: I_J[j] = i max_j = max(I_J.keys()) print(I_J[max_j])
s547701708
p03644
u037221289
1565835775
Python
Python (3.4.3)
py
Runtime Error
17
3064
302
N = int(input()) L = [(N,0),(1,0), (2,1), (4,2), (8,3), (16,4), (32,5), (64,6)] sorted_L = sorted(L,key=lambda x:x[0]) for i,j in enumerate(sorted_L): if j[0] == N: if sorted_L[i][0] == sorted_L[i+1][0]: print(sorted_L[i][0]) break else: print(sorted_L[i-1][0]) break
s360401091
p03644
u037221289
1565835746
Python
Python (3.4.3)
py
Runtime Error
18
3064
318
N = int(input()) L = [(N,0),(1,0), (2,1), (4,2), (8,3), (16,4), (32,5), (64,6)] sorted_L = sorted(L,key=lambda x:x[0]) print(sorted_L) for i,j in enumerate(sorted_L): if j[0] == N: if sorted_L[i][0] == sorted_L[i+1][0]: print(sorted_L[i][0]) break else: print(sorted_L[i-1][0]) break
s268924917
p03644
u037221289
1565835711
Python
Python (3.4.3)
py
Runtime Error
18
3064
306
N = int(input()) L = [(N,0),(1,0), (2,1), (4,2), (8,3), (16,4), (32,5), (64,6)] sorted_L = sorted(L,key=lambda x:x[0]) print(sorted_L) for i,j in enumerate(sorted_L): if j[0] == N: if sorted_L[i][0] == sorted_L[i+1][0]: print(sorted_L[i][0]) else: print(sorted_L[i-1][0]) break
s565394858
p03644
u791527495
1565835427
Python
Python (3.4.3)
py
Runtime Error
17
3064
190
N = int(input()) a = [] for i in range(1,N + 1): count = 0 while True: if i % 2 == 0: i /= 2 count += 1 else: break a.append(count) print(a.index(max(a)) + 1)
s928701968
p03644
u791527495
1565835401
Python
Python (3.4.3)
py
Runtime Error
17
2940
189
N = int(input()) a = [] for i in range(1,N + 1): count = 0 while True: if i % 2 == 0: i /= 2 count += 1 else: break a.append(count) print(a.index(max(X)) + 1)
s357424548
p03644
u791527495
1565835233
Python
Python (3.4.3)
py
Runtime Error
17
2940
189
N = int(input()) a = [] for i in range(1,N + 1): count = 0 while True: if i % 2 == 0: i /= 2 count += 1 else: break a.append(count) print(a.index(max(X) + 1))
s683156028
p03644
u791527495
1565835129
Python
Python (3.4.3)
py
Runtime Error
17
2940
188
N = int(input()) a = [] for i in range(1,N + 1): count = 0 while True: if i % 2 == 0: i /= 2 count += 1 else: break a.append(count) print(a.index(max(X) + 1)
s545511986
p03644
u597047658
1565810438
Python
Python (3.4.3)
py
Runtime Error
17
2940
217
N = input() tnum = 0 iter_num = 0 for i in range(N): res = 0 num = i+1 while num % 2 == 0: num /= 2 res += 1 if iter_num < res: iter_num = res tnum = i+1 print(tnum)
s092803801
p03644
u842388336
1565796608
Python
Python (3.4.3)
py
Runtime Error
17
2940
59
n = int(intput()) i=0 while 2**(i+1)<=n: i+=1 print(2**1)
s142122232
p03644
u248670337
1565588041
Python
Python (3.4.3)
py
Runtime Error
17
2940
35
print(2**(len(bin(int(input())))-3)
s943035227
p03644
u703442202
1565480353
Python
Python (3.4.3)
py
Runtime Error
17
2940
198
n = int(input()) list = [] for i in n: counter = 0 while i%2 = 0: counter += 1 i = i / 2 elif : break list.append(counter) answer = list.index(max(list)) + 1 print(answer)
s258173048
p03644
u571445182
1565416839
Python
Python (3.4.3)
py
Runtime Error
17
2940
200
import sys N=int(input()) if N==1: print(1) sys.exit() Flag=0 nCnt=1 Tmp=2 while Flag=0: TmpN = N /Tmp if TMpN >= 2: Tmp *= 2 nCnt +=1 else: Flag=1 A = 2 ** (nCnt) print(A)
s539333141
p03644
u408620326
1565318499
Python
Python (3.4.3)
py
Runtime Error
17
2940
119
res=0 for i in range(1,int(input())+1): t=0 while i==1: t+=1 if i%2==0 i//=2 res=max(res,t) print(res)
s084224910
p03644
u649591440
1565062585
Python
Python (3.4.3)
py
Runtime Error
17
3060
245
a = input() b = range(1, a + 1) res = 0 max_cnt = 0 for bb in b: cnt = 0 bb_org = bb while True: if bb % 2 == 0: bb /= 2 cnt += 1 else: break if cnt > max_cnt: max_cnt = cnt res = bb_org print(res)
s974287615
p03644
u649591440
1565062393
Python
Python (3.4.3)
py
Runtime Error
17
3060
252
a = input() b = range(1, a + 1) res = 0 max_cnt = 0 for index, bb in enumerate(b): cnt = 0 while True: if bb % 2 == 0: bb /= 2 cnt += 1 else: break if cnt > max_cnt: max_cnt = cnt res = index + 1 print(res)
s560888494
p03644
u539362921
1564899026
Python
Python (3.4.3)
py
Runtime Error
17
2940
108
N = input() for i in range(1,N+1): a = list(filter(lambda x: x%2 ==0 , i)) if len(a) == 1: print(a)
s967778133
p03644
u908763441
1564885363
Python
Python (3.4.3)
py
Runtime Error
17
2940
102
N = int(input()) int ans = 1 while N > ans: ans = ans * 2 ans = N if ans == N else ans/2 print(ans)
s542362629
p03644
u908763441
1564885153
Python
Python (3.4.3)
py
Runtime Error
18
2940
75
N = int(input()) ans = 1 while N > ans: ans = ans * N2 print(int(ans/2))
s947893680
p03644
u600319862
1563995208
Python
Python (3.4.3)
py
Runtime Error
18
2940
225
n=int(input()) sp = 0 for i in range(1,n+1): s_i=i count =0 a =True while a: if i % 2 ==0: i=i/2 count += 1 else: a =False if count >sp: sp = count sp_i = s_i print(sp_i)
s946876706
p03644
u668503853
1563585546
Python
Python (3.4.3)
py
Runtime Error
17
2940
178
N=int(input()) if N==1: print(1) elif 2<=N<4 print(2) elif 4<=N<8: print(4) elif 8<=N<16: print(8) elif 16<=N<32: print(16) elif 32<=N<64: print(32) else: print(64)
s230113953
p03644
u281216592
1563421894
Python
Python (3.4.3)
py
Runtime Error
17
2940
219
N = int(input()) counter =-1 number = 0 for i+1 in range(N): k = i now_counter = 0 while(k % 2 == 0): now_counter += 1 k /= 2 if(now_counter > counter): number = i print(number)
s216452698
p03644
u292735000
1562270449
Python
Python (3.4.3)
py
Runtime Error
17
2940
193
n = int(input()) n_max = 1 cnt_max = 0 for i in range(1, n + 1): cnt = 0 a = i while(a % 2 == 0) a %= 2 cnt += 1 if cnt > cnt_max: cnt_max = cnt n_max = i print(n_max)
s681500807
p03644
u633914031
1561782285
Python
Python (3.4.3)
py
Runtime Error
17
2940
55
N=int(input()) n=0 while N>=2**n: n+=1 print(2**(n-1)
s500061054
p03644
u089075077
1561572185
Python
Python (3.4.3)
py
Runtime Error
17
2940
107
N = int(input()) count = 0 While N%2==0: N = N/2 count += 1 else: break print(count)
s879872143
p03644
u089075077
1561572015
Python
Python (3.4.3)
py
Runtime Error
18
3188
110
N = int(input()) count = 0 for i in range(N): if N%2==0: count += 1 else: break print(count)
s593524198
p03644
u089075077
1561571886
Python
Python (3.4.3)
py
Runtime Error
18
2940
103
N = int(input()) count = 0 While True: if N%2==0: count += 1 else: break print(count)
s223211284
p03644
u089075077
1561571758
Python
Python (3.4.3)
py
Runtime Error
17
2940
108
N = int(input()) count = 0 for i in range(): if N%2==0: count += 1 else: break print(count)
s001006067
p03644
u260036763
1561238905
Python
Python (3.4.3)
py
Runtime Error
17
2940
146
a = 0 ans = 0 N = input() for i in range(1, N) : p = 0 while i % 2 == 0 : i //= 2 p += 1 if a < p : a = p ans = i print(ans)
s129045036
p03644
u260036763
1561238706
Python
Python (3.4.3)
py
Runtime Error
25
2940
146
a = 0 ans = 0 N = input() for i in range(1, N) : p = 0 while i % 2 == 0 : N //= 2 p += 1 if a < p : a = p ans = i print(ans)
s684745808
p03644
u260036763
1561238583
Python
Python (3.4.3)
py
Runtime Error
18
2940
136
a = 0 ans = 0 N = input() for i in N : p = 0 while i % 2 == 0 : N //= 2 p += 1 if a < p : a = p ans = i print(ans)
s998877738
p03644
u260036763
1561237966
Python
Python (3.4.3)
py
Runtime Error
17
2940
64
N = input() p = 0 while N % 2 == 0 : N //= 2 p += 1 print(p)
s058085880
p03644
u790487011
1560745791
Python
Python (3.4.3)
py
Runtime Error
17
2940
95
import sys N = int(sys.stdin.readline().rstrip()) n = 1 while n <= N n = n * 2 print(n/2)
s754080486
p03644
u560988566
1560305951
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
n = int(input()) ans = 0 for i in range(6,,-1): if n >= 2**i: ans = 2**i break print(ans)
s807501970
p03644
u345094945
1559845006
Python
Python (3.4.3)
py
Runtime Error
17
2940
66
a = int(input()) c = 1 while (c <= a): c = c * 2 print(int(c/2))
s410588493
p03644
u073549161
1559060652
Python
PyPy3 (2.4.0)
py
Runtime Error
174
38384
24
import math math.log2(2)
s486125108
p03644
u073549161
1559060639
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38256
29
import math math.log2("hoge")
s431519336
p03644
u073549161
1559060457
Python
PyPy3 (2.4.0)
py
Runtime Error
170
38640
173
import math n = int(input()) curnum = 1 curmax = 0 for i in range(1, n + 1): c = int(math.log2(i)) if c > curmax: curmax = c curnum = i print(curnum)
s917455260
p03644
u073549161
1559060360
Python
PyPy3 (2.4.0)
py
Runtime Error
175
38256
173
import math n = int(input()) curnum = 1 curmax = 0 for i in range(1, n + 1): c = int(math.log2(i)) if c > curmax: curmax = c curnum = i print(curnum)
s552750315
p03644
u924308178
1559011660
Python
Python (3.4.3)
py
Runtime Error
17
3060
272
# coding:utf-8 def recurcive(N,c): if N%2==0 and N!=0: c+=1 return recurcive(int(N/2),c) else: return c #print(recurcive(8,0)) N=int(input()) maxim=0 for i in range(1,N+1): if recurcive(i,0) > maxim: maxim=ans print(2**maxim)
s419497342
p03644
u924308178
1559011465
Python
Python (3.4.3)
py
Runtime Error
17
2940
255
# coding:utf-8 def recurcive(N,c): if N%2==0 and N!=0: c+=1 return recurcive(int(N/2),c) else: return c N=int(input()) maxim=-1 for i in range(1,N+1): if ans = recurcive(i,0) > maxim: maxim=ans print(2**maxim)
s388545934
p03644
u580573899
1559010072
Python
Python (3.4.3)
py
Runtime Error
18
2940
70
n=int(input()) i=1 while(a<=n): a=2**i i=i+1 print(int(a/2))
s077772166
p03644
u580573899
1559009959
Python
Python (3.4.3)
py
Runtime Error
18
2940
65
n=int(input()) i=1 while(a<=n): a=2**i i=i+1 print(a/2)
s252292987
p03644
u827306875
1557023223
Python
Python (3.4.3)
py
Runtime Error
18
2940
70
N = int(input()) i = 0 while 2**i <-=N: i += 1 print(2**(i-1))
s415993727
p03644
u194894739
1556977812
Python
Python (3.4.3)
py
Runtime Error
17
2940
168
n = int(input()) cnt_list = [] for i in range(1, n): cnt = 0 while i % 2 == 0: i = i / 2 cnt += 1 cnt_list.append(cnt) print(max(cnt_list))
s452134031
p03644
u923712635
1556938192
Python
Python (3.4.3)
py
Runtime Error
17
2940
62
N = int(input()) X = 1 while(N>=X):  X = X<<1 print(X>>1)
s200556514
p03644
u923712635
1556845581
Python
Python (3.4.3)
py
Runtime Error
17
2940
58
N = int(input()) X = 1 while(N>=X):  X<<1 print(X>>1)
s797075472
p03644
u731368968
1556557968
Python
Python (3.4.3)
py
Runtime Error
17
2940
50
a = 1 while a*2 <= int(input()): a*=2 print(a)
s281698118
p03644
u976871772
1555459777
Python
Python (3.4.3)
py
Runtime Error
17
3060
272
#coding:UTF-8 num = int(input()) max=0 for i in range(1,num+1): count=0 work=i while work%2==0: work=work//2 count = count+1 # print("i:{} count:{} max:{}".format(i,count,max)) if max<count: max=count ans=i if(max==0): print(1) print(ans)
s520098823
p03644
u976871772
1555457324
Python
Python (3.4.3)
py
Runtime Error
18
3060
244
#coding:UTF-8 num = int(input()) max=0 for i in range(1,num+1): count=0 work=i while work%2==0: work=work//2 count = count+1 # print("i:{} count:{} max:{}".format(i,count,max)) if max<count: max=count ans=i print(ans)
s735089851
p03644
u976871772
1555457197
Python
Python (3.4.3)
py
Runtime Error
17
3060
244
#coding:UTF-8 num = int(input()) max=0 for i in range(1,num+1): count=0 work=i while work%2==0: work=work//2 count = count+1 # print("i:{} count:{} max:{}".format(i,count,max)) if max<count: max=count ans=i print(ans)
s282655724
p03644
u969190727
1555421150
Python
Python (3.4.3)
py
Runtime Error
17
2940
35
print(2**(len(bin(int(input()))-3))
s578361928
p03644
u163320134
1555395400
Python
Python (3.4.3)
py
Runtime Error
17
2940
188
n=int(input()) elif n<2**1: print(1) elif n<2**2: print(2) elif n<2**3: print(4) elif n<2**4: print(8) elif n<2**5: print(16) elif n<2**6: print(32) elif n<2**7: print(64)
s615142371
p03644
u268516119
1555191310
Python
Python (3.4.3)
py
Runtime Error
18
2940
62
j=int(input()) print([2**i for i in range(8) if 2**i<=N][-1])
s652732329
p03644
u549497563
1555009351
Python
Python (3.4.3)
py
Runtime Error
17
2940
178
n = int(input()) if n>63: print(64): elif n>31: print(32) elif n>15: print(16) elif n>7: print(8) elif n>3: print(4) elif n>1: print(2) else: print(1)
s340201772
p03644
u588081069
1554524787
Python
Python (3.4.3)
py
Runtime Error
17
2940
157
import sys N = int(sys.stdin.readline()) sorted_list = [1, 2, 4, 8, 16, 32, 64, N][::1] min_index = sorted_list[sorted_list.index(N) + 1] print(min_index)
s387328959
p03644
u588081069
1554524652
Python
Python (3.4.3)
py
Runtime Error
17
3064
424
import sys N = int(sys.stdin.readline()) def dev(x): global cnt if x % 2 == 0: cnt += 1 dev(x / 2) return cnt sorted_list = [2, 4, 8, 16, 32, 64, N][::1] min_index = sorted_list[sorted_list.index(N) + 1] cnt = 0 min_cnt = dev(min_index) for i in reversed(range(min_index, N + 1, 2)): ...
s054082305
p03644
u588081069
1554524536
Python
Python (3.4.3)
py
Runtime Error
20
3064
465
import sys N = int(sys.stdin.readline()) def dev(x): global cnt if x % 2 == 0: cnt += 1 dev(x / 2) return cnt sorted_list = sorted([2, 4, 8, 16, 32, 64, N], reverse=True) min_index = sorted_list[sorted([2, 4, 8, 16, 32, 64, N], reverse=True).index(N) + 1] cnt = 0 min_cnt = dev(min_inde...
s938396736
p03644
u588081069
1554524295
Python
Python (3.4.3)
py
Runtime Error
17
3064
452
import sys N = int(sys.stdin.readline()) def dev(x): global cnt if x % 2 == 0: cnt += 1 dev(x / 2) return cnt min_cnt = 0 sorted_list = sorted([2, 4, 8, 16, 32, 64, N], reverse=True) min_index = sorted_list[sorted([2, 4, 8, 16, 32, 64, N], reverse=True).index(N) + 1] for i in range(min...
s766263545
p03644
u588081069
1554522919
Python
Python (3.4.3)
py
Runtime Error
17
3060
316
import sys N = int(sys.stdin.readline()) def dev(x): global cnt if x % 2 == 0: cnt += 1 dev(x / 2) return cnt min_cnt = 0 for i in reversed(range((N + 1)//2, N + 1, 2)): cnt = 0 result = dev(i) if min_cnt < result: min_i = i min_cnt = result print(min_i)
s855815019
p03644
u588081069
1554522732
Python
Python (3.4.3)
py
Runtime Error
18
2940
297
import sys N = int(sys.stdin.readline()) def dev(x): global cnt if x % 2 == 0: cnt += 1 dev(x / 2) return cnt min_cnt = 0 for i in range(2, N + 1, 2): cnt = 0 result = dev(i) if min_cnt < result: min_i = i min_cnt = result print(min_i)
s672877632
p03644
u588081069
1554522559
Python
Python (3.4.3)
py
Runtime Error
18
2940
273
N = int(input()) def dev(x): global cnt if x % 2 == 0: cnt += 1 dev(x / 2) return cnt min_cnt = 0 for i in range(2, N + 1, 2): cnt = 0 result = dev(i) if min_cnt < result: min_i = i min_cnt = result print(min_i)
s623718476
p03644
u041196979
1553730854
Python
Python (3.4.3)
py
Runtime Error
17
2940
138
N = int(intput()) if N == 1: print(1) exit() X = [2, 4, 8, 16, 32, 64, 128] for i, x in enumerate(X): if N < x: print(X[i - 1])
s319228783
p03644
u518042385
1553710435
Python
Python (3.4.3)
py
Runtime Error
18
2940
89
i=int(input()) for n in range(0,9): if 2**n=<i<2**(n+1): print(2**n) break
s075444343
p03644
u189575640
1553522272
Python
Python (3.4.3)
py
Runtime Error
17
2940
353
from sys import exit # A,B,C = [int(n) for n in input().split()] N = int(input()) # a = [int(input()) for _ in range(N)] # S = str(input()) # L = len(S) # T = str(input()) maxd = 0 for i in range(1,N+1): tmp = i tmpa = 0 while(tmp%2 == 0): tmp//=2 tmpa +=1 if(maxd < tmpa): ans = ...
s679189475
p03644
u224156735
1553438521
Python
Python (3.4.3)
py
Runtime Error
17
2940
96
n=int(input()) ans=1 for i in range(a,(n+1)): if (i//ans)%2 == 0: ans=i print(ans)
s030977905
p03644
u224156735
1553438480
Python
Python (3.4.3)
py
Runtime Error
17
2940
95
n=int(input()) ans=a for i in range(a,(n+1)): if (i//ans)%2 == 0: ans=i print(ans)
s727788819
p03644
u393512980
1553308231
Python
PyPy3 (2.4.0)
py
Runtime Error
170
38640
151
n = int(input()) M = 0 for i in range(1, n + 1): t = i s = 0 while t % 2 == 0: t /= 2 s += 1 if M < s: M = s ans = i print(ans)
s350442224
p03644
u187205913
1552181870
Python
Python (3.4.3)
py
Runtime Error
17
2940
216
n = int(input()) num=0 for i in range(1,n+1): k=0 c=i while True: if c%2==0: c/=2 k+=1 else: break if k>num: num=k ans=i print(ans)
s381645749
p03644
u500297289
1552003944
Python
Python (3.4.3)
py
Runtime Error
17
2940
203
""" AtCoder """ N = int(input()) ans_list = [2, 4, 8, 16, 32, 64] ans_list = ans_list[::-1] if N == 1: print(1) for i in range(7): if N > ans_list[i]: print(ans_list[i]) break
s254745230
p03644
u865413330
1551614658
Python
Python (3.4.3)
py
Runtime Error
17
3060
296
n = int(input()) count = 0 currCount = 0 ans = 0 for i in range(n+1): currCount = 0 currNum = i while (i % 2) == 0: if i == 0: break i = int(i / 2) currCount += 1 if count < caurrCount: count = currCount ans = currNum print(ans)
s170217939
p03644
u119983020
1551235126
Python
Python (3.4.3)
py
Runtime Error
24
2940
103
N = int(input()) power = [64,32,16,8,4,2,1] for i in power: if N <= power: print(power) break
s101560322
p03644
u729133443
1551116646
Python
Python (3.4.3)
py
Runtime Error
17
2940
34
print(2<<len(bin(int(input())))-4)
s645726065
p03644
u977349332
1551091641
Python
Python (3.4.3)
py
Runtime Error
18
2940
95
a = [64, 32, 16, 8, 4, 2, 1] N = int(input()) for i in a: if i < N: print(i) return
s701039827
p03644
u652081898
1550925054
Python
Python (3.4.3)
py
Runtime Error
17
2940
103
n = int(input()) for i in range(n): if 2**i > n: ans = 2**(i-1) break print(ans)
s420116568
p03644
u174394352
1550715884
Python
PyPy3 (2.4.0)
py
Runtime Error
197
40176
151
def num2(n): ans=0 while n%2==0: ans+=1 n//=2 return ans l=[[i,num2(i)] for i in range(1,N+1)] l.sort(key=lambda x:x[1]) print(l[0][0])
s568387444
p03644
u875731881
1550350169
Python
Python (3.4.3)
py
Runtime Error
18
3060
45
import math print(2**int(log2(int(input()))))
s575966458
p03644
u875731881
1550350044
Python
Python (3.4.3)
py
Runtime Error
17
2940
33
print(2**int(log2(int(input()))))
s911199222
p03644
u397563544
1549585824
Python
Python (3.4.3)
py
Runtime Error
18
2940
104
N = int(input()) for k in range(1,7): if(N < 2**k): ans = 2**(k-1) break print(ans)
s602779938
p03644
u977855674
1548598906
Python
Python (3.4.3)
py
Runtime Error
18
2940
268
import java.util.Scanner; class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); scan.close(); System.out.println(0b1 << Integer.toBinaryString(N).length() - 1); } }
s656004620
p03644
u371467115
1546492071
Python
Python (3.4.3)
py
Runtime Error
18
2940
35
print(2**(len(bin(int(input()))-3))
s902898288
p03644
u785578220
1545931708
Python
Python (3.4.3)
py
Runtime Error
18
2940
98
a = int(input()) s = 1 while n>0: if 2**n <a: s = 2**n break n-=1 print(s)
s522078779
p03644
u785578220
1545931577
Python
Python (3.4.3)
py
Runtime Error
18
2940
98
a = int(input()) s = 1 while n>0: if 2**n <a: s = 2**n break n-=1 print(s)
s251023348
p03644
u576434377
1544060363
Python
Python (3.4.3)
py
Runtime Error
18
2940
87
N = int(input()) n = 1 while n <= N: n *= 2 print(n // 2)