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
s185918362
p03643
u663710122
1506540197
Python
Python (3.4.3)
py
Runtime Error
17
2940
23
print(f'ABC' + input())
s126289302
p03643
u677320550
1503704961
Python
Python (3.4.3)
py
Runtime Error
17
2940
28
a=input() print('ABC' +a)
s789863941
p03643
u677320550
1503704824
Python
Python (3.4.3)
py
Runtime Error
17
2940
23
a=input() print('ABC'a)
s468234175
p03643
u677320550
1503704643
Python
Python (3.4.3)
py
Runtime Error
17
2940
29
a=input() print(ABC) print(a)
s334696658
p03643
u677320550
1503704585
Python
Python (3.4.3)
py
Runtime Error
18
3060
29
a=imput() print(ABC) print(a)
s669711835
p03643
u370413678
1503570246
Python
Python (3.4.3)
py
Runtime Error
17
3060
223
N, M = map(int, raw_input().split()) a={} b={} for i in range(M): k,l=map(int, raw_input().split()) if k==1: a.add(k) if l==N: b.add(l) if a&b: print("POSSIBLE") else: print("IMPOSSIBLE")
s670397059
p03643
u370413678
1503570085
Python
Python (3.4.3)
py
Runtime Error
16
2940
236
N, M = map(int, raw_input().split()) a={} b={} for i in range(M): k,l=a.append(map(int, raw_input().split())) if k==1: a.add(k) if l==1: b.add(l) if a&b: print("POSSIBLE") else: print("IMPOSSIBLE")
s052646969
p03643
u593227551
1502719882
Python
Python (3.4.3)
py
Runtime Error
17
2940
53
l = list(map(int, input().split())) print("ABC"+l[0])
s537855603
p03643
u952708174
1501974037
Python
PyPy3 (2.4.0)
py
Runtime Error
169
38640
38
in=input("") print("ABC{}".format(in))
s427842887
p03643
u952708174
1501973908
Python
PyPy3 (2.4.0)
py
Runtime Error
161
38256
36
in=input() print("ABC{}".format(in))
s067684740
p03643
u026607956
1501807746
Python
Python (2.7.6)
py
Runtime Error
10
2568
32
n=int(raw_input()) print "ABC"+n
s510354101
p03643
u639444166
1501698909
Python
Python (2.7.6)
py
Runtime Error
13
2692
527
#!usr/bim/python #! -*- coding: utf-8 -*- n_m = raw_input() n,m = n_m.split() #n = int(n) m = int(m) shima_1_list = [] shima_2_list = [] i = 0 while i < m: teikibin = raw_input() teikibin = teikibin.split() if teikibin[0] == "1": shima_1_list.append(teikibin[1]) elif teikibin[1] == n: ...
s701318096
p03643
u391512495
1501633940
Python
Python (3.4.3)
py
Runtime Error
17
3068
8
uk3zdbr9
s686332242
p03643
u845674689
1501623590
Python
Python (3.4.3)
py
Runtime Error
17
3060
316
N = int(input()) arr = [i for i in range(1, N + 1)] # N == len(arr) nums = N*[0] for j in range(N): target = arr[j] num = 0 while target % 2 == 0: num += 1 target /= 2 nums[j] = num max_index = 0 for k in range(N): if nums[k] > max: max_index = k print(arr[max_index])
s410651458
p03643
u650245944
1501537424
Python
Python (3.4.3)
py
Runtime Error
17
2940
73
#!/usr/bin # -*- coding="utf-8" -*- a = raw_input() print ("ABC" + a )
s931176285
p03643
u985212186
1501526365
Python
Python (3.4.3)
py
Runtime Error
17
3064
405
N, M = map(int, input().split()) arr = [] i = 0 for i in range(M): append = arr.append t = list(map(int, input().split(" "))) append(t) p1 = [x for x in arr if x[0] == 1] p2 = [x for x in arr if x[1] == N] ii = 0 iii = 0 r = 0 for ii in p1: for iii in p2: if iii[0] == ii[1]: r = 1...
s360372225
p03643
u579754454
1501390384
Python
PyPy3 (2.4.0)
py
Runtime Error
178
39024
257
N,M=[int(i) for i in input().split()] a=[] b=[] c=[] for i in range(M): x,y=[int(i) for i in input().split()] if x==1 : c.append(y) if y==N: c.append(x) if len(c)==len(set(c)): print("IMPOSSIBLE") else: print("POSSIBLE")
s482386043
p03643
u579754454
1501389777
Python
PyPy3 (2.4.0)
py
Runtime Error
174
38384
308
N,M=[int(i) for i in input().split()] a=[] b=[] c=[] flag=False for i in range(M): x,y=map(int,input().split()) a.append(x) b.append(y) if x==1: c.append(y) for i in range(M): if b[i]==N: flag=a[i] in c if flag==False: print("IMPOSSIBLE") else: print("POSSIBLE")
s469172892
p03643
u785205215
1501385096
Python
Python (3.4.3)
py
Runtime Error
17
3064
441
n, m = (int(i) for i in input().split()) island = [[] for i in range(n)] for i in range(m): a, b = (int(i)-1 for i in input().split()) if a == 0: island[a].append(b) elif a == n-1: island[n-1].append(b) elif b == 0: island[b].append(a) elif b == n-1: island[n-1].appe...
s345425478
p03643
u785205215
1501385044
Python
Python (3.4.3)
py
Runtime Error
23
3064
455
n, m = (int(i) for i in input().split()) island = [[] for i in range(n)] for i in range(m): a, b = (int(i)-1 for i in input().split()) if a == 0: island[a].append(b) elif a == n-1: island[n-1].append(b) elif b == 0: island[b].append(a) elif b == n-1: island[n-1].appe...
s235553982
p03643
u142415823
1501382376
Python
Python (3.4.3)
py
Runtime Error
17
3064
412
import sys l = raw_input().split() N = int(l[0]) M = int(l[1]) nlist = [] list1 = [] for i in range(0, M): tmp = raw_input().split() a = int(tmp[0]) b = int(tmp[1]) if a == 1: list1.append(b) continue if b == N: nlist.append(a) continue matched_list = list(set(list1) ...
s486010185
p03643
u142415823
1501382319
Python
Python (3.4.3)
py
Runtime Error
18
3064
412
import sys l = raw_input().split() N = int(l[0]) M = int(l[1]) nlist = [] list1 = [] for i in range(0, M): tmp = raw_input().split() a = int(tmp[0]) b = int(tmp[1]) if a == 1: list1.append(b) continue if b == N: nlist.append(a) continue matched_list = list(set(list1) ...
s864158455
p03643
u142415823
1501382166
Python
Python (2.7.6)
py
Runtime Error
11
2568
424
import sys l = raw_input().split() N = int(l[0]) M = int(l[1]) nlist = [] list1 = [] flag = True for i in range(0, M): tmp = raw_input().split() a = int(tmp[0]) b = int(tmp[1]) if a == 1: list1.append(b) continue if b == N: nlist.append(a) continue matched_list = list...
s395567769
p03643
u796424048
1501381620
Python
Python (3.4.3)
py
Runtime Error
18
2940
90
def solve(): N = input() print ('ABC') + N if __name__ == '__main__': solve()
s893020027
p03643
u340643636
1501380437
Python
Python (3.4.3)
py
Runtime Error
17
3060
315
d={} n,m = map(int,input().split()) for _ in range(m): i,j = map(int,input().split()) if j in d: d[j].append(i) else: d[j]=[i] flag=0 if n in d: for item in d[n]: if item in d and 1 in d[item]: flag=1 break print('POSSIBLE' if flag else 'IMPOSSIBLE')
s264817866
p03643
u096190786
1501379746
Python
Python (2.7.6)
py
Runtime Error
13
2692
806
#!/usr/bin/python from sets import Set import sys def main(argv): line = sys.stdin.readline() while line: N, M = map(lambda x: int(x), line.split(" ", 2)) services_1 = Set([]) services_n = [] for i in xrange(M): a, b = map(lambda x: int(x), sys.stdin.readline().spl...
s009083414
p03643
u796424048
1501379678
Python
Python (3.4.3)
py
Runtime Error
17
2940
87
input_N = input() if 100>input_N and 900<input_N; sys.exit() print ('ABC') + input_N
s121246938
p03643
u796424048
1501379487
Python
Python (3.4.3)
py
Runtime Error
19
2940
48
input_N = input('>>' ) print ('ABC') + input_N
s679367159
p03643
u096190786
1501379476
Python
Python (2.7.6)
py
Runtime Error
10
2692
783
#!/usr/bin/python import sys def main(argv): line = sys.stdin.readline() while line: N, M = map(lambda x: int(x), line.split(" ", 2)) services_1 = set() services_n = [] for i in xrange(M): a, b = map(lambda x: int(x), sys.stdin.readline().split(" ", 2)) ...
s754293675
p03643
u494209838
1501379296
Python
Python (3.4.3)
py
Runtime Error
17
3064
361
# -*- coding: utf-8 -*- import itertools import sys ships = [] N, M = [int(x) for x in input().split()] for i in range(M): ships.append([int(x) for x in input().split()]) from_1 = set([ship[1] for ship in ships if ship[0] == 1]) to_N = set([ship[0] for ship in ships if ship[1] == N]) if from_1 & to_N: print(...
s312640710
p03643
u315857144
1501379151
Python
Python (3.4.3)
py
Runtime Error
19
3064
509
n, m = [int(x) for x in input().split()] isl = [] mark = [False] * n l = [0] * n for i in range(n): isl.append([]) for i in range(m): a, b = [int(x) for x in input().split()] isl[a - 1].append(b - 1) isl[b - 1].append(a - 1) q = [] q.append(0) found = False while len(q): v = q.pop() mark[v] = ...
s948567598
p03643
u340643636
1501378085
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
a=[1,2,4,8,16,32,64,128] n=int(input()) i=0 while a[i]<=n: i+=1 print(a[i-1])
s245735419
p03643
u340643636
1501377961
Python
Python (3.4.3)
py
Runtime Error
17
2940
96
a=[1,2,4,8,16,32,64,128] n=int(input()) i=0 while a[i]<=n: i+=1 print(a[i-1] if i>0 else 0)
s219780645
p03643
u340643636
1501377860
Python
Python (3.4.3)
py
Runtime Error
17
2940
119
a=[1,2,4,8,16,32,64,128] n=int(input()) i=0 while a[i]<=n: i+=1 print(a[i-1] if i>0 else 0)
s594169915
p03643
u744898490
1501376542
Python
Python (3.4.3)
py
Runtime Error
17
2940
30
n = input() print(int(n[3:]))
s686961990
p03644
u530071782
1601424137
Python
PyPy3 (7.3.0)
py
Runtime Error
84
68660
96
N = int(input()) l = [1,2,4,8,16,32,64]{[::-1] for i in l: if N >= i: print(i) break
s684831589
p03644
u538111326
1601408380
Python
Python (3.8.2)
py
Runtime Error
27
9080
275
n = int(input()) s = [i for i in range(1,n+1)] counter = 0 while(True): if len([i for i in s if i % 2 == 0])==1: s = [i for i in s if i % 2 == 0] print(int(s[-1] * (2 ** counter))) break else: s = [i/2 for i in s] counter += 1
s534334122
p03644
u244434589
1600830583
Python
Python (3.8.2)
py
Runtime Error
24
9008
17
if 2**i <=n:
s136268913
p03644
u611684128
1600468760
Python
Python (3.8.2)
py
Runtime Error
23
9104
253
N = int(input()) s = [input() for i in range(N)] b = [] cnt = 0 for i in range(N): if s[i] % 2 == 1: exit() else: while s[i] % 2 == 0: cnt += 1 s[i] /= 2 b.append(cnt) cnt = 0 print(min(b))
s790553910
p03644
u477320129
1600388235
Python
Python (3.8.2)
py
Runtime Error
27
8844
70
N = int(input()) print(max(i if 2 ** i <= N else 0 for i in range(10))
s098740173
p03644
u012771396
1600324191
Python
PyPy3 (7.3.0)
py
Runtime Error
87
74780
87
import math if n == 8: print(8) else: print(int(2 ** (math.log(n) // math.log(2))))
s542416983
p03644
u012771396
1600323900
Python
PyPy3 (7.3.0)
py
Runtime Error
99
75020
73
import math print(2 ** (int(math.log(int(input()))) // int(math.log(2))))
s378338114
p03644
u011872685
1599868638
Python
Python (3.8.2)
py
Runtime Error
27
9028
176
N=int(input()) import ita data=ita.array.make1d(N) for i in range(0,N): c=0 while i%2==0: c=c+1 data[i]=c k=0 while data[k]!=max(data): k=k+1 print(k+1)
s061769946
p03644
u698868214
1599759474
Python
Python (3.8.2)
py
Runtime Error
28
9172
197
N = int(input()) ans = 0 for i in range(2,N+1): j = i if j % 2 == 1: continue cnt = 0 while j % 2 == 0: j //= 2 cnt += 1 if ans < cnt: res = i ans = cnt print(res)
s130060824
p03644
u440478998
1599267761
Python
Python (3.8.2)
py
Runtime Error
28
9080
167
n = int(intput()) res = [] for i in range (1,n + 1): cnt = 0 while i % 2 == 0: i /= 2 cnt += 1 res.append(cnt) print(res.index(max(res))+1)
s094564675
p03644
u795733769
1598885633
Python
Python (3.8.2)
py
Runtime Error
25
9188
276
N = int(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)
s492211337
p03644
u957275485
1598725794
Python
Python (3.8.2)
py
Runtime Error
25
9236
146
N=int(input()) a=[] for n in range(1,N,1): count=0 while n%2 == 0: count+=1 n/=2 a.append(count) Nmax=a.index(max(a))+1 Tmax=max(a)
s520919121
p03644
u304058693
1598678429
Python
Python (3.8.2)
py
Runtime Error
29
9108
288
n = int(input()) ans = [] for i in range(1, n + 1): x = i for j in range(100): if x % 2 == 0: x = int(x // 2) #ans.append(j) else: #ans.append(j) break #ans.append(j) #print(ans) print(ans.index(max(ans)) + 1)
s523987812
p03644
u468972478
1598407409
Python
Python (3.8.2)
py
Runtime Error
24
9104
159
n = int(input()) a = [] for i in range(1, n+1): while True: if i % 2 != 0: break i = i // 2 c += 1 a.append(c) print(a.index(max(a)) + 1)
s729585139
p03644
u620846115
1598279278
Python
Python (3.8.2)
py
Runtime Error
25
8860
93
n = int(input()) for i in range(n): if i = 2**a and 2**a < n and n < 2**(a+1): print(i)
s575392243
p03644
u612975321
1598263715
Python
Python (3.8.2)
py
Runtime Error
26
9156
76
n = int(input()) b = m.bit_length() - 1 ans = int('0b1'+'0'*m, 2) print(ans)
s044715795
p03644
u106778233
1597520766
Python
Python (3.8.2)
py
Runtime Error
26
9060
67
for i in range(7): if 2**i> n: break print(2**(i-1))
s286289107
p03644
u869790980
1597180388
Python
PyPy2 (7.3.0)
py
Runtime Error
356
85320
61
import math c= 0 while(n % 2 == 0): n/=2 c+=1 print c
s026243042
p03644
u344888046
1595840282
Python
Python (3.8.2)
py
Runtime Error
25
9192
260
N = int(input()) ans = 0 for x in range(1, N + 1): ans_ = 0 k = x for y in range(999): if x % 2 == 0: x /= 2 ans_ += 1 else: break if ans_ > ans: ans = ans_ kk = k print(kk)
s591190940
p03644
u344888046
1595840185
Python
Python (3.8.2)
py
Runtime Error
27
9244
258
N = int(input()) ans = 0 for x in range(1, N + 1): ans_ = 0 k = x for y in range(x): if x % 2 == 0: x /= 2 ans_ += 1 else: break if ans_ > ans: ans = ans_ kk = k print(kk)
s553772985
p03644
u569776981
1595293354
Python
Python (3.8.2)
py
Runtime Error
31
9176
169
N = int(input()) x = 0 a = [] for i in range(2,N,2): while i % 2 == 0: i //= 2 x += 1 a.append(x) x = 0 a = sorted(a) a = a[::-1] print(a[0])
s457013710
p03644
u569776981
1595293165
Python
Python (3.8.2)
py
Runtime Error
27
9108
170
N = int(input()) x = 0 a = [] for i in range(2,N,2): while i % 2 == 0: i //= 2 x += 1 a.append(x) x = 0 a = sorted(a) a = a[::-1] print(a[0])
s654552924
p03644
u288980918
1594862675
Python
Python (3.8.2)
py
Runtime Error
25
9028
81
n = input() ans = 1 for i in range(7): if 2**i <= n: ans = 2**i print(ans)
s413356945
p03644
u438189153
1594854798
Python
Python (3.8.2)
py
Runtime Error
27
9088
219
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: prnit("16") elif 32<=N<64: print("32") elif 64<=N<=100: print("64")
s322149259
p03644
u438189153
1594854369
Python
Python (3.8.2)
py
Runtime Error
25
9076
226
N=int(input()) if 1<=N<2: print("1") elif 2<=N<4: print("2") elif 4<=N<8: print("4") elif 8<=N<16: print("8") elif 16<=N<32: prnit("16") elif 32<=N<64: print("32") elif 64<=N<=100: print("64")
s796726060
p03644
u456416458
1594853179
Python
Python (3.8.2)
py
Runtime Error
29
9072
153
s = input() p = int(s) x = 1 numbers = [] while (x <= p): x *= 2 numbers.append(x) y = numbers.pop() answer = numbers.pop() print(answer)
s290801518
p03644
u452337391
1594789008
Python
Python (3.8.2)
py
Runtime Error
27
9176
213
N = int(input()) max_cnt = 0 for n in range(1, N+1): cnt = 0 for div in range(1, 7): if n % 2**div == 0: cnt += 1 if cnt > max_cnt: max_cnt = cnt ans = n print(ans)
s812737588
p03644
u761062383
1593870685
Python
Python (3.8.2)
py
Runtime Error
24
9080
79
n=int(input()) for i in range(8): if 2**i > n: print(2**(i-1)) return
s549347894
p03644
u591503175
1593745785
Python
Python (3.8.2)
py
Runtime Error
27
9072
579
def resolve(N): ''' code here ''' N = int(input()) res = 0 def div2(num): if num == 1: return 0 else: cnt = 0 while True: if num % 2 == 0: num //= 2 cnt += 1 else: ...
s325952976
p03644
u591503175
1593745764
Python
Python (3.8.2)
py
Runtime Error
24
8992
581
def resolve(N): ''' code here ''' # N = int(input()) res = 0 def div2(num): if num == 1: return 0 else: cnt = 0 while True: if num % 2 == 0: num //= 2 cnt += 1 else: ...
s955002336
p03644
u163421511
1593312756
Python
Python (3.8.2)
py
Runtime Error
33
9008
55
N = int(input()) while a*2 <= N: a = a*2 print(a)
s462510751
p03644
u163421511
1593312678
Python
Python (3.8.2)
py
Runtime Error
25
9088
54
N = int(input()) while a*2 <= N: a *= 2 print(a)
s176259350
p03644
u537722973
1592761437
Python
Python (3.8.2)
py
Runtime Error
30
9108
242
n = int(input()) allcount = 0 for i in range(1,n+1): count = 0 vans = i while True: if i%2 == 1: break elif i%2 == 0: count += 1 i //= 2 if count > allcount: allcount = count ans = vans print(ans)
s819920091
p03644
u895445743
1592318495
Python
PyPy3 (2.4.0)
py
Runtime Error
176
40412
51
n=int(input) i=1 while i*2<=n: i*=2 print(i)
s027920222
p03644
u895445743
1592278041
Python
PyPy3 (2.4.0)
py
Runtime Error
166
38384
180
n=input() maxn=0 maxcount=0 for i in range(n+1): count=0 now=i while n%2==0: now=now/2 count+=1 if maxcount < count: maxn=now maxcount=count print(maxn)
s606098171
p03644
u895445743
1592277942
Python
PyPy3 (2.4.0)
py
Runtime Error
168
38384
166
n=input() maxn=0 maxcount=0 for i in range(n+1): count=0 while n%2==0: n=n/2 count+=1 if maxcount < count: maxn=i maxcount=count print(maxn)
s091646986
p03644
u895445743
1592277882
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38256
170
n=input() maxn=0 maxccount=0 for i in range(n+1): count=0 while n%2==0: n=n/2 count+=1 if maxcount < count: maxn=i maxcount=count print(maxn)
s972713809
p03644
u895445743
1592277748
Python
PyPy3 (2.4.0)
py
Runtime Error
167
38640
172
n=input() maxn=0 maxccount=0 for i in range(n+1): count=0 while n-i%2==0: n=n/2 count+=1 if maxcount < count: maxn=i maxcount=count print(maxn)
s182341109
p03644
u399973890
1592188194
Python
Python (3.4.3)
py
Runtime Error
18
3064
279
N = int(input()) evens = [i for i in range(1, N+1) if i%2 ==0] even_cnts = [] for even in evens: cnt = 0 while even % 2 ==0: cnt += 1 even = even / 2 even_cnts.append(cnt) max_cnts = max(even_cnts) index = even_cnts.index(max_cnts) print(evens[index])
s296691500
p03644
u629276590
1592086920
Python
Python (3.4.3)
py
Runtime Error
18
3060
199
n = int(input()) ans = 0 out = 1 for i in range(1, n + 1): cnt = 0 while i % 2 == 0: i //= 2 cnt += 1 if cnt > ans: ans = cnt out = i * 2 ** ant print(out)
s035732484
p03644
u736546944
1591990607
Python
Python (3.4.3)
py
Runtime Error
17
2940
222
N = int(input()) if N = 1: print(1) elif 2 <= N <= 3: print(2) elif 4 <= N <= 7: print(4) elif 8 <= N <= 15: print(8) elif 16 <= N <= 31: print(16) elif 32 <= N <= 63: print(32) elif 64 <= N <= 100: print(64)
s832685656
p03644
u957957759
1591846516
Python
Python (3.4.3)
py
Runtime Error
18
2940
170
n=input() if n<2: print(1) elif n<4: print(2) elif n<8: print(4) elif n<16: print(8) elif n<32: print(16) elif n<64: print(32) else: print(64)
s274379178
p03644
u925406312
1591838649
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
a = input() x = 0 while 2**x <=a: boxs = 2 ** x x += 1 print(boxs)
s571717745
p03644
u243572357
1591814025
Python
Python (3.4.3)
py
Runtime Error
17
2940
80
n = int(input()) for i in range(7): if n < 2 ** i: print(2**(i-1)) break
s564560697
p03644
u243572357
1591813983
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
n = int(input()) for i in range(7): if n < 2 ** i: print(2**(i-1)) break
s007912226
p03644
u767664985
1591146602
Python
Python (3.4.3)
py
Runtime Error
17
2940
130
N = int(input()) ans_list = [2**i for i in range(7)] ai = 0 while (ans_list[ai] <= N): ai += 1 print(ans_list[max(0, ai-1)])
s583854966
p03644
u767664985
1591146520
Python
Python (3.4.3)
py
Runtime Error
17
2940
122
N = int(input()) ans_list = [2**i for i in range(7)] ai = 0 while (ans_list[ai] <= N): ai += 1 print(ans_list[ai-1])
s925400387
p03644
u662396511
1590868996
Python
Python (3.4.3)
py
Runtime Error
17
2940
139
n = int(input()) if n>=64: print(64) elif 32<=n<64: print(32) elif 16<=n<32: print(16) elif 8<=n<16: print(8) elif 4<=n<8:
s791736925
p03644
u559346857
1590332856
Python
Python (3.4.3)
py
Runtime Error
17
2940
68
num=int(input()) cnt=0 while num%2==0: num/=2 cnt++ print(cnt)
s750269537
p03644
u559346857
1590332803
Python
Python (3.4.3)
py
Runtime Error
17
2940
69
num=int(input()) cnt=0 while num%2==0: num//=2 cnt++ print(cnt)
s166352719
p03644
u559346857
1590332502
Python
Python (3.4.3)
py
Runtime Error
17
2940
70
num=int(input()) cnt=o while num%2==0: num//2 cnt+=1 print(cnt)
s371834809
p03644
u459215900
1590193048
Python
Python (3.4.3)
py
Runtime Error
17
2940
435
N = int(input()) # ans = 1 # mac_c = 0 # for i in range(2, N+1): # c_count = 0 # temp_i = i # while True: # if temp_i % 2 != 0: # break # temp_i /= 2 # c_count += 1 # if mac_c <= c_count: # mac_c = c_count # ans = i # 別解 # 100以内の数で2の累乗を求めればいい ans_lis...
s372573925
p03644
u393224521
1589936850
Python
Python (3.4.3)
py
Runtime Error
17
2940
129
n = int(sys.stdin.readline().rstrip("\n")) i = 0 while True: if 2**i <= n: i += 1 else: break print(2**i)
s337428323
p03644
u153823221
1589517125
Python
Python (3.4.3)
py
Runtime Error
17
2940
304
n = int(input()) list = [] for i in range(n+1): #nまでの数字について扱うよ for j in range(n): #それぞれの数字が割り切れなくなるまで割るよ if j % 2 != 1: j = j % 2 cnt += 1 continue else: list.append(j) print(list.index(max(list))
s283260712
p03644
u696240348
1589499184
Python
PyPy3 (2.4.0)
py
Runtime Error
180
38256
63
import math a = int(input()) print(2**math.floor(math.log2(a)))
s520257008
p03644
u696240348
1589499146
Python
PyPy3 (2.4.0)
py
Runtime Error
177
38768
52
import math a = int(input()) print(2**math.floor(mat
s259744817
p03644
u860002137
1589254322
Python
Python (3.4.3)
py
Runtime Error
18
3060
161
N = int(input()) cnt = 0 tmp = 0 while tmp<=N: if N==1: print(ans) break else: cnt += 1 tmp = 2**cnt print(2**(cnt-1))
s760017434
p03644
u027403702
1589237142
Python
Python (3.4.3)
py
Runtime Error
17
2940
60
N = int(input()) i = 1 while i <= N: i = i*2 peint(i//2)
s928300153
p03644
u453642820
1588884691
Python
Python (3.4.3)
py
Runtime Error
17
2940
78
n=int(input()) b=0 for i in range(7): if 2**i=<n: b=2**i print(b)
s725385909
p03644
u737508101
1588730762
Python
Python (3.4.3)
py
Runtime Error
17
2940
96
n = int(input()) t = 1 while True: if t * 2 > n: break t *= 2 print(t)
s064266455
p03644
u737508101
1588730690
Python
Python (3.4.3)
py
Runtime Error
17
2940
128
import sys def main(): n = int(input()) t = 1 while True: if t * 2 > n: break t *= 2 print(t) main()
s340249889
p03644
u653883313
1588624963
Python
Python (3.4.3)
py
Runtime Error
18
3064
320
n = int(input()) precount = 0 for i in range(1, n+1): tmp = i flag = 1 count = 0 while flag : flag = 0 if i%2 == 0: i = i//2 flag = 1 count += 1 if precount < count : precount = count ans = tmp print(ans)
s739803857
p03644
u752898745
1588543374
Python
Python (3.4.3)
py
Runtime Error
18
2940
158
s=int(input()) two=[] for i in range(7): two.append(2**i) ans=0 if s in two: print(s) else: while s>two[ans]: ans+=1 print(2**(ans-1))
s782753373
p03644
u006880673
1588459592
Python
PyPy3 (2.4.0)
py
Runtime Error
170
38384
363
N = int(input()) l = [i for i in range(1, N+1)] l1 = l.copy() c = [0]*N while True: exist_even = False for i in range(N): if l[i] % 2 == 0: exist_even = True if not exist_even: break for i in range(N): if l[i] % 2 == 0: l[i] = l[i] // 2 c[i]...
s278498263
p03644
u423665486
1588350632
Python
PyPy3 (2.4.0)
py
Runtime Error
183
38384
120
def resolve(): n = int(input()) ans = 0 for i in range(1, n+1): if i % 2 == 0: ans += 1 print(ans) resolve()