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
s557557125
p03493
u438662618
1551652930
Python
Python (3.4.3)
py
Runtime Error
17
2940
179
N = int(input()) A = list(map(int, input().split())) count = 0 while sum(list(map(lambda x: x % 2, A))) == 0 : count += 1 A = list(map(lambda x: x / 2, A)) print(count)
s378313900
p03493
u815666840
1551646116
Python
Python (3.4.3)
py
Runtime Error
18
3060
164
import math n = input() a = list(map(int, input().split())) ans = float("inf") for i in a: ans = min(ans, len(bin(i)) - bin(i).rfind("1") - 1) print(round(ans))
s222366461
p03493
u815666840
1551643774
Python
Python (3.4.3)
py
Runtime Error
18
2940
23
print(input().count(1))
s464957948
p03493
u655048024
1551406888
Python
Python (3.4.3)
py
Runtime Error
17
2940
103
c=list(map(int, input().split())) k = 0 for i in range(0,2): if (c[i] == "1"): k += 1 print(k)
s890895417
p03493
u259499029
1551229710
Python
Python (3.4.3)
py
Runtime Error
17
2940
92
a = input() b = 0 if a[0] == 1: b++ if a[1] == 1: b++ if a[2] == 1: b++ print(b)
s258551975
p03493
u259499029
1551220456
Python
Python (3.4.3)
py
Runtime Error
17
2940
92
a = input() b = 0 if a[0] == 1: b++ if a[1] == 1: b++ if a[2] == 1: b++ print(b)
s016192249
p03493
u815659544
1551215161
Python
Python (3.4.3)
py
Runtime Error
154
12500
209
import numpy as np n = input() a = np.array(list(map(int, input().split()))) c = 0 s = 0 while s == 0: s += np.sum(a % 2) if s == 0: c += 1 a = a/2 else: break print(c)
s009181619
p03493
u815659544
1551215056
Python
Python (3.4.3)
py
Runtime Error
149
12500
221
#%% import numpy as np #%% n = input() a = np.array(list(map(int, input().split()))) #%% c = 0 s = 0 while s == 0: s += np.sum(a % 2) if s == 0: c += 1 a = a/2 else: break print(c)
s149341813
p03493
u815659544
1551214643
Python
Python (3.4.3)
py
Runtime Error
158
12392
210
import numpy as np #%% n = int(input()) a = list(map(int, input.split())) #%% c = 0 s = 0 while s == 0: s += np.sum(a % 2) if s == 0: c += 1 a = a/2 else: break print(c)
s966457907
p03493
u310678820
1551060302
Python
Python (3.4.3)
py
Runtime Error
17
2940
188
import sys N=int(input()) a=[int(i) for i in input().split()] t=0 while True: for i in range(N): if a[i]%2==0: a[i]//=2 else: print(t) sys.exit() t+=1
s416927372
p03493
u310678820
1551060123
Python
Python (3.4.3)
py
Runtime Error
21
3316
187
import sys N=int(input()) a=[int(i) for i in input().split()] t=0 while True: for i in range(N): if a[i]%2==0: a[i]//=2 else: print(t) sys.exit() t+=1
s148949665
p03493
u310678820
1551059895
Python
Python (3.4.3)
py
Runtime Error
17
3064
186
import sys N=int(input()) a=[int(i) for i in input().split()] t=0 while True: for i in range(N): if a[i]%2==0: a[i]//=2 else: print(t) sys.exit() t+=1
s667396609
p03493
u310678820
1551059527
Python
Python (3.4.3)
py
Runtime Error
16
2940
192
import sys N=int(input()) a=[int(i) for i in input().split()] t=0 while True: for i in range(N): if a[i]%2==0: a[i]//=2 t+=1 else: print(t) sys.exit()
s682061789
p03493
u310678820
1551057272
Python
Python (3.4.3)
py
Runtime Error
18
2940
85
a=input() c=0 for i in range(2): if a>=10**(2-i): a-10**(2-i) c+=1 print(c)
s110576487
p03493
u379136995
1551022521
Python
Python (3.4.3)
py
Runtime Error
18
2940
162
a = input() a = int(a) if(a==000): print(0) elif(a==100)or(a==010)or(a==001): print(1) elif(a==101)or(a==110)or(a==011): print(2) else: print(3)
s566777346
p03493
u379136995
1551022297
Python
Python (3.4.3)
py
Runtime Error
17
2940
159
a = input() a = int(a) if(a=000): print(0) elif(a=100)or(010)or(001): print(1) elif(a=101)or(110)or(011): print(2) else: print(3)
s626280778
p03493
u392029857
1550957754
Python
Python (3.4.3)
py
Runtime Error
18
2940
128
s1,s2,s3 = map(str, input().split()) x = [s1,s2,s3] counter = 0 for i in x: if i == '1': counter += 1 print(counter)
s605721655
p03493
u392029857
1550957602
Python
Python (3.4.3)
py
Runtime Error
17
2940
126
s1,s2,s3 = map(int, input().split()) x = [s1,s2,s3] counter = 0 for i in x: if i == 1: counter += 1 print(counter)
s644946282
p03493
u282228874
1550780216
Python
Python (3.4.3)
py
Runtime Error
18
2940
139
n = int(input()) A = list(map(int,input().split())) c = 0 while all (a%2==0 for a in A): A = list(a//2 for a in A) c += 1 print(c)
s704176633
p03493
u220462658
1550722737
Python
Python (3.4.3)
py
Runtime Error
18
3060
298
n = int(input()) char_list = input().split() num_list = list(map(int, char_list)) def is_even(lis): return [x for x in lis if x % 2] mod2_list = is_even(num_list) i = 0 while mod2_list == []: num_list = [x / 2 for x in num_list] mod2_list = is_even(num_list) i += 1 print(i)
s798298380
p03493
u350049649
1550709887
Python
Python (3.4.3)
py
Runtime Error
16
2940
206
N=int(input()) A=list(map(int,input().split()))ans=0 flag=0 while flag==0: for i in range(N): if A[i]&1==0: A[i]=A[i]>>1 else: print(ans) flag=1 break ans+=1 print(ans)
s887556365
p03493
u227837680
1550469864
Python
Python (2.7.6)
py
Runtime Error
2103
2568
417
import sys N = sys.stdin.readline().rstrip(); N = int(N) A = [] cnt = 0 while cnt < N: element = sys.stdin.readline().rstrip() element = int(element) A.append(element) cnt += 1 ans = 0 while True: # check bool_check=True for i in xrange(N): if A[i] % 2 == 1: bool_check = False break if ...
s102028537
p03493
u690576712
1550197833
Python
Python (2.7.6)
py
Runtime Error
10
2568
102
shio = string(raw_input()) counter = 0 for i in 2: if shio[i] == "1": counter +=1 print(counter)
s052353821
p03493
u690576712
1550197645
Python
Python (2.7.6)
py
Runtime Error
11
2568
102
shio = string(raw_input()) counter = 0 for i in 2 if shio[i] = "1": counter+=1 print(counter)
s642272904
p03493
u690576712
1550197445
Python
Python (2.7.6)
py
Runtime Error
10
2568
70
shio = string(input()) x = 0 for i in shio: if shio = "0": x+=1
s401719533
p03493
u636162168
1550194887
Python
Python (3.4.3)
py
Runtime Error
17
2940
134
n = input() a = list(map(int, input().split())) cnt = 0 while all(i%2==0 for i in a): a = [i/2 for i in a] cnt += 1 print(cnt)
s405071561
p03493
u636162168
1550194840
Python
Python (3.4.3)
py
Runtime Error
18
2940
134
n = input() a = list(map(int, input().split())) cnt = 0 while all(i%2==0 for i in a): a = [i/2 for i in a] cnt += 1 print(cnt)
s715193182
p03493
u636162168
1550194038
Python
Python (3.4.3)
py
Runtime Error
17
2940
291
N=input() a=list(map(int,input().split())) c=0 T=True for i in a: if (i%2)!=0: print(c) break else: while T: a=list(map(lambda x:x/2,a)) c+=1 b=list(map(lambda x:True if x%2==0 else False,a)) T=b[False] print(c)
s643346661
p03493
u636162168
1550193907
Python
Python (3.4.3)
py
Runtime Error
18
3060
299
N=input() a=list(map(int,input().split())) c=0 T=True for i in a: if (i%2)!=0: print(c) break else: while T: a=list(map(lambda x:x/2,a)) c+=1 b=list(map(lambda x:True if x%2==0 else False,a)) T=b[False] print(c)
s916219048
p03493
u636162168
1550192717
Python
Python (3.4.3)
py
Runtime Error
17
3064
248
N=input() a=list(map(int,input().split())) i=0 T=True while T: a=list(map(lambda x: x/2,a)) c=list(map(lambda x : True if x%2 ==0 else False,a)) for k in c: if k==False: T=False i-=1 i+=1 print(i)
s682883375
p03493
u636162168
1550192435
Python
Python (3.4.3)
py
Runtime Error
20
3060
236
N=input() a=list(map(int,input().split())) i=0 T=True while T: a=list(map(lambda x: int(x/2),a)) i+=1 c=list(map(lambda x : True if x%2 ==0 else False,a)) for k in c: if k==False: T=False print(i)
s450833966
p03493
u598720217
1550170128
Python
Python (3.4.3)
py
Runtime Error
18
2940
72
a,b,c = map(str, input().split()) al = [a,b,c] print(al.count("1"))
s487837032
p03493
u598720217
1550169959
Python
Python (3.4.3)
py
Runtime Error
18
2940
56
abc = map(int, input().split()) print(abc.count(1))
s049630875
p03493
u962819039
1549873501
Python
Python (3.4.3)
py
Runtime Error
18
2940
48
a, b, c = map(int, input().split()) print(a+b+c)
s910449178
p03493
u962819039
1549873357
Python
Python (3.4.3)
py
Runtime Error
18
2940
67
a, b, c = map(int, input().split()) print(int(a) + int(b) + int(c))
s140725110
p03493
u118211443
1549753530
Python
Python (3.4.3)
py
Runtime Error
18
3060
217
import sys N=int(input()) x=[int(i) for i in input().split()] cnt=0 while(1): for i in range(N): if x[i]%2 != 0: print(cnt) sys.exit() tmp=[i//2 for i in x] x=tmp cnt+=1
s117562841
p03493
u688320008
1549521795
Python
Python (3.4.3)
py
Runtime Error
17
2940
70
a=str(input()) b=0 for moji in a: if moji=="1" b+=1 print(b)
s296450978
p03493
u650137238
1549347402
Python
Python (3.4.3)
py
Runtime Error
18
2940
291
n = int(input()) arr = [int(x) for x in input().split()] def countTwoInFactor(n): def countTwoInFactori(n, acc): return countTwoInFactori(n / 2, acc + 1) if n % 2 == 0 else acc return countTwoInFactori(n, 0) arr2 = [countTwoInFactor(x) for x in arr] arr2.sort() print(arr2[0])
s066826947
p03493
u650137238
1549346401
Python
Python (3.4.3)
py
Runtime Error
17
3060
202
import math n = int(input()) arr = [int(x) for x in input().split()] isAllEven = len([x for x in arr if x % 2 == 0]) == n if not isAllEven: print(0) exit() arr.sort() print(math.log2(arr[0]))
s967257992
p03493
u650137238
1549345774
Python
Python (3.4.3)
py
Runtime Error
18
2940
189
import math n = int(input()) arr = [int(x) for x in input().split()] count = 0 max_even = 0 for x in arr: if x % == 2 and x > max_even: max_even = x print(math.log2(max_even))
s830603670
p03493
u020604402
1549224348
Python
PyPy3 (2.4.0)
py
Runtime Error
178
38384
86
N = input() ans = 0 for x in N: if x == '1' ans += 1 else: pass print(ans)
s870153891
p03493
u985376351
1549142032
Python
Python (3.4.3)
py
Runtime Error
18
2940
207
N = int(input()) a = list(map(int,input().split())) c = list() for n in range(N): for i in range(1,31): if not a[n]%(2**i)==0: c.append(i-1) break print(min(c))
s108312095
p03493
u342042786
1549087868
Python
Python (3.4.3)
py
Runtime Error
340
20244
319
import numpy as np N = int(input()) num = list(map(int, input().split())) num = np.array(num) count = 0 judge = 0 for i in range(N): if (num[i] % 2) == 1: judge = 1 while judge == 0: num = num/2 count += 1 for i in range(N): if (num[i] % 2) == 1: judge = 1 print(count)
s373054682
p03493
u225482186
1548985122
Python
Python (3.4.3)
py
Runtime Error
18
2940
180
def div(n): ans = 0 while n % 2 == 0: n /= 2 ans+=1 return ans N = int(input()) list = map(int,input().split()) ans = min(map(div,list)) print(ans)
s897526888
p03493
u239981649
1548818973
Python
Python (3.4.3)
py
Runtime Error
17
2940
63
li = input().split('') print(len([a for a in li if a == '1']))
s540666271
p03493
u239981649
1548818889
Python
Python (3.4.3)
py
Runtime Error
18
2940
75
li = list(map(int, input.split(''))) print(len([a for a in li if a == 1]))
s618081951
p03493
u239981649
1548818644
Python
Python (3.4.3)
py
Runtime Error
18
2940
61
li = input.split('') print(len([a for a in li if a == '1']))
s802857558
p03493
u952396514
1548553570
Python
Python (3.4.3)
py
Runtime Error
18
2940
92
n = int(input(), 2) count = 0 while n > 0: n = n && (n - 1) count += 1 print(count)
s800303304
p03493
u609088611
1548434536
Python
Python (3.4.3)
py
Runtime Error
18
2940
93
num = input() count = 0 for i in len(num): if (num[i] == '1'): count += 1 print(count)
s770838863
p03493
u609088611
1548434473
Python
Python (3.4.3)
py
Runtime Error
18
2940
90
num = input() count = 0 for i in len(num): if (num[i] == 1): count += 1 print(count)
s911316595
p03493
u716263716
1548398419
Python
Python (3.4.3)
py
Runtime Error
18
2940
120
import math n = input() a = list(map(int, input().split())) for i in a: ans = bin(i).find("1") - 1 print(round(ans))
s720621142
p03493
u716263716
1548398367
Python
Python (3.4.3)
py
Runtime Error
18
2940
139
import math n = input() a = list(map(int, input().split())) ans = float("inf") for i in a: ans = bin(i).find("1") - 1 print(round(ans))
s353518094
p03493
u716263716
1548398173
Python
Python (3.4.3)
py
Runtime Error
18
2940
140
import math n = input() a = list(map(int, input().split())) ans = float("inf") for i in a: ans = bin(i).rfind("1") - 1 print(round(ans))
s514384887
p03493
u716263716
1548398126
Python
Python (3.4.3)
py
Runtime Error
18
3060
140
import math n = input() a = list(map(int, input().split())) ans = float("inf") for i in a: ans = bin(i).rfind("1") - 1 print(round(ans))
s281650782
p03493
u444732068
1548219457
Python
Python (3.4.3)
py
Runtime Error
18
3064
291
N,K = map(int,input().split()) A = list(map(int,input().split())) A_unique = list(set(A)) N_unique = len(A_unique) a = [A.count(A_unique[i]) for i in range(N_unique)] a_sort = sorted(a) M = N_unique-K if M <= 0: print(0) exit() ans = 0 for i in range(0,M): ans += a_sort[i] print(ans)
s988455457
p03493
u444732068
1548219386
Python
Python (3.4.3)
py
Runtime Error
18
2940
285
N,K = map(int,input().split()) A = list(map(int,input().split())) A_unique = list(set(A)) N_unique = len(A_unique) a_sort = sorted([A.count(A_unique[i]) for i in range(N_unique))]) M = A_unique-K if M <= 0: print(0) exit() ans = 0 for i in range(0,M): ans += a_sort[i] print(ans)
s399907934
p03493
u580301039
1548178535
Python
Python (3.4.3)
py
Runtime Error
18
3060
179
n=int(input()) a=list(map(int,input().split())) x=0 b=0 for i in range(n): b+=a[i]%2 while b==0 : x += 1 for i in range(n): a[i]/=2 b+=a[i]%2 print(x)
s322428827
p03493
u580301039
1548178472
Python
Python (3.4.3)
py
Runtime Error
18
3060
178
n=int(input()) a=list(map(int,input().split())) x=0 b=0 for i in range(n): b+=a[i]%2 while b==0 : x += 1 for i in range(n): a[i]/=2 b+=a[i]%2 print(x)
s859984853
p03493
u951601135
1548006631
Python
Python (3.4.3)
py
Runtime Error
17
3060
164
import math n = input() a = list(map(int, input().split())) ans = float("inf") for i in a: ans = min(ans, len(bin(i)) - bin(i).rfind("1") - 1) print(round(ans))
s209302752
p03493
u951601135
1548006545
Python
Python (3.4.3)
py
Runtime Error
17
3060
165
import math n = input() a = list(map(int, input().split( ))) ans = float("inf") for i in a: ans = min(ans, len(bin(i)) - bin(i).rfind("1") - 1) print(round(ans))
s764324877
p03493
u638734525
1547449651
Python
Python (3.4.3)
py
Runtime Error
18
3060
239
N=int(input())#入力回数を決める data = input().split() list_count = [] for num in data: count = 0 while int(num) % 2 == 0: num = int(num) / 2 count += 1 list_count.append(count) print(min(list_count))
s229071118
p03493
u959277666
1547053439
Python
Python (3.4.3)
py
Runtime Error
19
3064
311
N=int(input()) hoge=input() count=0 hoge=hoge.split() for i in range(N): hoge[i] = int(hoge[i]) while True: all_even=True for i in range(N): if hoge[i] % 2 != 0: all_even = False if all_even == False: break else: count += 1 for i in range(N): hoge[i]=hoge[i]/2 print(count)
s945443605
p03493
u691766194
1546755304
Python
Python (3.4.3)
py
Runtime Error
17
2940
35
s = input(str()) print(s.text("1"))
s486612951
p03493
u371467115
1546658440
Python
Python (3.4.3)
py
Runtime Error
18
2940
84
input() n=eval(input().replace(' ','|')) print(len(bin(n&-n))-3) #コピペです。
s827588837
p03493
u371467115
1546655308
Python
Python (3.4.3)
py
Runtime Error
18
2940
235
length = int(input()) a_list = map(int, input().split()) num_list = [] for a in a_list: t = a num = 0 while t % 2 == 0: num += 1 t = t / 2 num_list.append(num) print(min(num_list)) #こぴぺです。
s350511527
p03493
u948986080
1546619226
Python
PyPy3 (2.4.0)
py
Runtime Error
171
38640
23
print(input.count("1"))
s328225542
p03493
u960171798
1546033476
Python
PyPy2 (5.6.0)
py
Runtime Error
38
27500
31
s = input() print(s.count('1'))
s100561116
p03493
u960171798
1546033078
Python
Python (3.4.3)
py
Runtime Error
18
2940
166
y = list(input()) # y = [0,1,0]のようなリストになっているはず x = 0 for i in range(0,2): if y[i] == 1: x += 1 else: continue print(x)
s633661618
p03493
u960171798
1546032989
Python
Python (3.4.3)
py
Runtime Error
17
2940
140
y = list(input()) # y = [0,1,0]のようなリストになっているはず x = 0 for i in range(0,2): if y[i] == 1: x += 1 print(x)
s271664387
p03493
u960171798
1546032791
Python
Python (3.4.3)
py
Runtime Error
18
2940
53
y = list(input()) n = sum(y[i]=1 for i in y) print(n)
s288687122
p03493
u010668949
1545720119
Python
Python (3.4.3)
py
Runtime Error
18
2940
342
#0が1をスペース区切りで3つ入力 a, b, c = map(int, input().split()) #aからcそれぞれが1と等しいかどうかを判断し、等しいのであれば順次iに1を足していく i = 0 #aについて if a==1: i += 1 #bについて if b==1: i += 1 #cについて if c==1: i += 1 #出力 print(i)
s049427850
p03493
u615615456
1544715474
Python
Python (2.7.6)
py
Runtime Error
10
2568
121
s = map(int, list(raw_input())) #入力した時にリストでSを配列 print sum(s) #s[0]~s[N]までの合計を出す
s918271001
p03493
u928784113
1544545765
Python
Python (3.4.3)
py
Runtime Error
17
2940
74
# -*- coding: utf-8 -*- a,b,c-map(str,input()) S = abc print(S.count("1"))
s686983508
p03493
u359474860
1544535611
Python
Python (3.4.3)
py
Runtime Error
17
2940
94
s1,s2,s3 = map(int, input().split()) a = [s1,s2,s3] n = len([i for i in a if i == 1]) print(n)
s901625735
p03493
u748135969
1544045135
Python
Python (3.4.3)
py
Runtime Error
17
2940
117
n = int(input()) count = 0 for i in range(len(n)): if n[i] == 1: count += 1 else: count += 0 print(count)
s395158802
p03493
u661066442
1543976552
Python
Python (3.4.3)
py
Runtime Error
21
3316
217
from collections import Counter n, k = map(int, input().split()) a = list(map(int, input().split())) def cnt_uniq(li): return Counter(li).values() uniq = sorted(cnt_uniq(a), reverse = True)[k:] print(sum(uniq))
s293204243
p03493
u893048163
1543901270
Python
Python (3.4.3)
py
Runtime Error
18
2940
76
count = 0 for s in input(): if s = '1': count += 1 print(count)
s801849239
p03493
u370867568
1543518072
Python
Python (3.4.3)
py
Runtime Error
19
2940
190
_ = int(input()) l = list(map(int, input().split())) ans = 10 ** 9 for n in l: count = 0 while n % 2 == 0: n //= 2 count += 1 ans = min(ans, count) print(ans)
s650703087
p03493
u244118793
1543048171
Python
Python (3.4.3)
py
Runtime Error
17
2940
311
n = int(input()) a = [] a = list(map(int, input().split())) counter = 0 check = 0 for i in range(n): if a[i] % 2 = 0: check += 1 while check == n: for i in range(n): a[i] = a[i]/2 for i in range(n): product = 1 product *= a[i] counter += 1 print(counter)
s408509869
p03493
u464995425
1543031174
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
dat=input() print(dat.count('1')
s207695254
p03493
u464995425
1543031114
Python
Python (3.4.3)
py
Runtime Error
17
2940
45
dat=str(input().split()) print(dat.count('1')
s653413321
p03493
u681917640
1542842321
Python
Python (2.7.6)
py
Runtime Error
11
2568
241
input() nums = input().split() result = 18 # 制約 Ai < 10^9より for num in nums: num = int(num) div_times = 0 while (num & 1) == 0: num = num >> 1 div_times += 1 if div_times < result: result = div_times print(result)
s667591896
p03493
u681917640
1542842282
Python
Python (3.4.3)
py
Runtime Error
17
3060
241
input() nums = input().split() result = 18 # 制約 Ai < 10^9より for num in nums: num = int(num) div_times = 0 while (num & 1) == 0: num = num >> 1 div_times += 1 if div_times < result: result = div_times print(result)
s067035840
p03493
u129978636
1542838492
Python
Python (3.4.3)
py
Runtime Error
18
2940
37
S = list(input()) print(s.count('1'))
s325538655
p03493
u629487136
1542747730
Python
Python (3.4.3)
py
Runtime Error
17
2940
24
print(input().count(1))
s169619062
p03493
u205580583
1542606565
Python
Python (3.4.3)
py
Runtime Error
17
2940
224
def div_cnt(input_n): cnt = 0 while input_n % 2 == 0: input_n /= 2 cnt += 1 return cnt input_n = int(input()) input_a = list(map(int,input().split())) cnt = min(map(div_cnt,input_a)) print(cnt)
s774154825
p03493
u197704813
1542579452
Python
Python (3.4.3)
py
Runtime Error
24
3444
188
import collections N,K = map(int,input().split(" ")) A = list(map(int,input().split(" "))) count = collections.Counter(A) num = len(count)-K a = sorted(count.values()) print(sum(a[:num]))
s021726967
p03493
u845427284
1541915982
Python
Python (3.4.3)
py
Runtime Error
18
2940
93
s = [int(x) for x in int(input())] sum = 0 for i in s: if i == 1: sum += 1 print(sum)
s057205692
p03493
u236127431
1541908356
Python
Python (3.4.3)
py
Runtime Error
17
3064
248
N=int(input()) List=list(map(int,input().split())) Flag=0 Counter=-1 Element=0 while Flag<1: while Element<N: if List[Element]%2==1: Flag=1 List[Element]=List[Element]/2 Element+=1 Element=0 Counter+=1 print(Counter)
s602342339
p03493
u423624748
1541823284
Python
Python (3.4.3)
py
Runtime Error
17
2940
229
#include <iostream> using namespace std; int main(){ int a; cin >> a; int sum=0,i; while(a!=0){ i=a%10; sum+=i; a/=10; } cout << sum; return 0; }
s095660895
p03493
u561828236
1541715986
Python
Python (3.4.3)
py
Runtime Error
18
2940
34
s = int(input()) print(s.count(1))
s072930780
p03493
u729133443
1541531726
Python
PyPy3 (2.4.0)
py
Runtime Error
168
38640
25
print(eval(input()+'%9'))
s887313592
p03493
u268279636
1541255850
Python
Python (3.4.3)
py
Runtime Error
17
3060
170
N=int(input()) a=list(map(int,input().split())) n=0 flag = 1 while flag: for i in range(len(a)): if a[i]%2==0: a[i]=a[i]//2 else: flag = 0 n=n+1 print(n-1)
s341505784
p03493
u268279636
1541255544
Python
Python (3.4.3)
py
Runtime Error
17
3060
170
N=int(input()) a=list(map(int,input().split())) n=0 flag = 1 while flag: for i in range(len(a)): if a[i]%2==0: a[i]=a[i]//2 else: flag = 0 n=n+1 print(n-1)
s681907497
p03493
u268279636
1541255298
Python
Python (3.4.3)
py
Runtime Error
17
3060
168
N=int(input()) a=list(map(int,input().split())) n=0 flag = 1 while flag: for i in range(len(a)): if a[i]%2==0: a[i]=a[i]/2 else: flag = 0 n=n+1 print(n-1)
s368851720
p03493
u268279636
1541253216
Python
Python (3.4.3)
py
Runtime Error
17
2940
28
i=input() print(count('1'))
s216671871
p03493
u984870883
1541251355
Python
Python (3.4.3)
py
Runtime Error
17
2940
206
# -*- coding: utf-8 -*- """ Created on Sat Nov 3 09:19:07 2018 @author: sk """ a, b, c = map(int, input().split()) int s=0 if a==1: s=s+1 if b==1: s=s+1 if c==1: s=s+1 print(s)
s338108683
p03493
u104334696
1540935295
Python
Python (3.4.3)
py
Runtime Error
17
2940
34
(sandbox) C:\Dev\python_scripts>
s671616003
p03493
u319805917
1540926245
Python
Python (3.4.3)
py
Runtime Error
17
2940
209
a,b,c=map(int,input().split()) a=str(a) b=str(b) c=str(c) d=a.find("1") e=b.find("1") f=c.find("1") if d+e+f=-3: print("0") elif d+e+f=-2: print("1") elif d+e+f=-1: print("2") elif d+e+f=0: print("3")
s391903187
p03493
u131405882
1540666777
Python
Python (3.4.3)
py
Runtime Error
17
2940
47
A = input() print(int(A[0])+int(A[1]+int(A[2]))