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
s311489562
p03493
u516554284
1570623145
Python
Python (3.4.3)
py
Runtime Error
17
2940
28
s=input() print(s.count('1')
s653866113
p03493
u365013885
1570479947
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
t = input().replace(' ','') if t % 4 == 0: print('YES') else: print('NO')
s359967937
p03493
u365013885
1570471555
Python
Python (3.4.3)
py
Runtime Error
18
2940
60
a = list(int(input())) b = 0 for i in a: b += i print(b)
s305219818
p03493
u365013885
1570471099
Python
Python (3.4.3)
py
Runtime Error
17
2940
51
a = int(input) for row in a: b += row print(b)
s163550223
p03493
u365013885
1570470792
Python
Python (3.4.3)
py
Runtime Error
18
2940
35
a, b, c = int(input()) print(a+b+c)
s477809316
p03493
u365013885
1570470727
Python
Python (3.4.3)
py
Runtime Error
17
2940
40
a, b, c = int(input()) print(str(a+b+c))
s112935091
p03493
u768559443
1570325935
Python
Python (3.4.3)
py
Runtime Error
24
2940
24
print(input().count("1")
s355876956
p03493
u753682919
1570152523
Python
Python (3.4.3)
py
Runtime Error
18
3064
38
S=str(input()) print(S.count(”1”))
s192140425
p03493
u753682919
1570152377
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
S=int(input()) print(S.count(1))
s681247061
p03493
u511421299
1570127184
Python
Python (3.4.3)
py
Runtime Error
17
3060
269
n = input() a = list(map(int, input().split())) flg = True break_flg = False total = 0 while True: for i, b in enumerate(a): if b%2 == 0: a[i] = b/2 else: break_flg = True break if break_flg : break else: total += 1 print(total)
s213917486
p03493
u824144553
1570102855
Python
Python (3.4.3)
py
Runtime Error
148
12504
242
import numpy as np N = int(input()) A = np.array(list(map(int, input().split()))) cnt = 0 def divide_by_2(array): rest = array % 2 global cnt if np.all(rest == 0): cnt += 1 divide_by_2(array / 2) divide_by_2(A) print(cnt)
s461369961
p03493
u526459074
1569792403
Python
Python (3.4.3)
py
Runtime Error
17
3060
211
n = input() a = list(map(int, input().split())) # n = 3 # a = [10, 11, 12] ans =0 product =1 for i in a: product = product *i while product%2 ==0: product = product/2 ans = ans + 1 print(ans)
s823886523
p03493
u926943349
1569689161
Python
Python (3.4.3)
py
Runtime Error
19
3316
218
a=int(input()) b=list(map(int,input().split())) c=0 od=0 while od==0: for i in range(a): if b[i]%2 == 1: od=1 if od==1: break for i in range(a): b[i]/=2 c+=1 print(c)
s517710342
p03493
u672898046
1569550225
Python
Python (3.4.3)
py
Runtime Error
17
2940
60
a = input() c = 0 for i in c: if i=="1": c+=1 print(c)
s918649534
p03493
u740047492
1569357174
Python
Python (3.4.3)
py
Runtime Error
18
2940
34
a = int(input()) print(a.count(0))
s975749623
p03493
u740047492
1569357150
Python
Python (3.4.3)
py
Runtime Error
19
2940
35
a = int(input()) print(a.count(o))
s525966902
p03493
u951480280
1569173994
Python
Python (3.4.3)
py
Runtime Error
17
2940
31
a,b,c=int(input());print(a+b+c)
s858402847
p03493
u982471399
1569162065
Python
Python (3.4.3)
py
Runtime Error
18
3060
235
N=int(input()) A=list(map(int,input().split())) flag=0 count=0 ans=[] for a in A: if a%2==0: count=a/2 ans.append(count) else: flag=1 if flag==0: print(int(min(ans))) else: print(0)
s851264847
p03493
u982471399
1569118193
Python
Python (3.4.3)
py
Runtime Error
2103
2940
179
A=list(map(int,input().split())) p=0 for i in A: if p==0: while i%2==1: p=p+1 else: ans=p while i%2==1: p=p+1 if p>ans: ans=p print(ans)
s631047228
p03493
u772118381
1569034759
Python
Python (3.4.3)
py
Runtime Error
17
2940
75
s=list(map(int,input().split())) x=0 for i in 1: s[i] = 1 x+=1 print(x)
s865668913
p03493
u772118381
1569034680
Python
Python (3.4.3)
py
Runtime Error
18
2940
64
s=list(map(int,input().split())) x=0 for s in 1: x+=1 print(x)
s016670889
p03493
u655135177
1568934866
Python
Python (3.4.3)
py
Runtime Error
17
2940
104
inp = str(input()) n = 0 if imp[0] == 1: n+=1 if imp[1] == 1: n+=1 if imp[2] == 1: n+=1 print(n)
s404640436
p03493
u054935796
1568835368
Python
Python (3.4.3)
py
Runtime Error
17
3060
234
N = int(input()) A = list(map(int, input().split())) t = 0 def exist_odd(A): for i in A: if i % 2 == 1: break return 1 else: return 0 while exist_odd(A) ==1: A = list(map(lambda x: x / 2, A)) t = t+1 print(t)
s358432897
p03493
u092244748
1568408619
Python
Python (3.4.3)
py
Runtime Error
17
3060
339
# 自分の回答 n = int(input()) array = list(map(int, input().split())) flg = 0 count = 0 while(flg == 0): j = 0 for j in range(n): if(array[j] % 2 == 0): array[j] /= 2 j += 1 if(j == (n -1)): count += 1 else: flg = 1 break pri...
s271856142
p03493
u092244748
1568408514
Python
Python (3.4.3)
py
Runtime Error
17
3060
339
# 自分の回答 n = int(input()) array = list(map(int, input().split())) flg = 0 count = 0 while(flg == 0): j = 0 for j in range(n): if(array[j] % 2 == 0): j += 1 array[j] /= 2 if(j == (n -1)): count += 1 else: flg = 1 break pri...
s344001124
p03493
u092244748
1568408316
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))
s649376256
p03493
u871596687
1568388073
Python
Python (3.4.3)
py
Runtime Error
17
2940
53
s = list(input()) for i ==2: sum+=s[i] print(sum)
s787710848
p03493
u315706001
1568252205
Python
Python (3.4.3)
py
Runtime Error
17
2940
43
S = int(input()) N = S.count("1") print (N)
s523315793
p03493
u258073778
1568180789
Python
Python (3.4.3)
py
Runtime Error
18
3060
236
n = int(input()) a = list(map(int, input().split())) ct = 0 while(1) : count = 0 for i in range(n): if a[i]%2 != 0: count+=1 if count != 0: break else: a1 = [j/2 for j in a] a = a1 ct += 1 print(ct)
s925670452
p03493
u403355272
1568057456
Python
Python (3.4.3)
py
Runtime Error
17
2940
151
N = int(input()) count = 0 A = [int(x) for x in input().split()] while all(i % 2 == 0 for i in A): A = [i/2 for i in A] count += 1 print(count)
s355954234
p03493
u469254913
1567996449
Python
Python (3.4.3)
py
Runtime Error
17
2940
103
a = list(input()) s1,s2,s3 = a[0],a[1],a[2] count = 0 for i=range(a): count += a[i] print(count)
s591304675
p03493
u364642100
1567957165
Python
Python (3.4.3)
py
Runtime Error
17
2940
140
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)
s158567165
p03493
u364642100
1567957116
Python
Python (3.4.3)
py
Runtime Error
17
2940
139
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)
s608203029
p03493
u364642100
1567956097
Python
Python (3.4.3)
py
Runtime Error
17
2940
25
print(input(),count("1"))
s948853068
p03493
u100800700
1567873375
Python
Python (3.4.3)
py
Runtime Error
17
3064
276
#Shift only N = int(input()) A = list(map(int,input().split())) count = [0]*N for a in range(N): count_local = 0 while A[a]%2 == 0: A[a] = A[a]/2 count_local += 1 if count_local >= count[a]: count[a] = count_local print(min(count))
s460253384
p03493
u100800700
1567872795
Python
Python (3.4.3)
py
Runtime Error
17
2940
228
N = input() A = list(map(int,input().split())) count = 0 for a in A: count_local = 0 while a%2 == 0: a = a/2 count_local += 1 if count_local <= count: count = count_local print(count)
s551860672
p03493
u992759582
1567575327
Python
Python (3.4.3)
py
Runtime Error
18
2940
104
math = input() count = 0 for i in range(len(math)): if math[i] == '1' count +=1 print(count)
s965265044
p03493
u992759582
1567575299
Python
Python (3.4.3)
py
Runtime Error
17
2940
104
math = input() count = 0 for i in range(len(math)): if math[i] == '1' count +=1 print(count)
s497236483
p03493
u600402037
1567528701
Python
Python (3.4.3)
py
Runtime Error
17
2940
24
print(sum(int(input())))
s683273354
p03493
u572142121
1567463760
Python
Python (3.4.3)
py
Runtime Error
17
2940
23
print(input().count(1))
s367396532
p03493
u733738237
1567463545
Python
Python (3.4.3)
py
Runtime Error
17
2940
175
N = int(input()) a = list(map(int, input().split())) point = 0 while True: A =[x % 2 for x in a] if A.count(0) != N: break = [x // 2 for x in a] point += 1 print(point)
s535295958
p03493
u965436898
1567393951
Python
Python (3.4.3)
py
Runtime Error
18
3060
154
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(ans)
s085031810
p03493
u168660441
1567279926
Python
Python (3.4.3)
py
Runtime Error
17
3064
283
_ = input() a = input() a = a.split(" ") b = [] d = 0 flag = True for i in a: if int(i)%2 == 0: b.append(int(i)) else: print(0) flag = False break if flag == True: c = min(b) while c%2 == 0: c = c/2 d += 1 print(d)
s306112313
p03493
u168660441
1567279845
Python
Python (3.4.3)
py
Runtime Error
17
3060
263
_ = input() a = input() a = a.split(" ") b = [] d = 0 flag = True for i in a: if int(i)%2 == 0: b.append(int(i)) else: print(0) flag = False break c = min(b) while c%2 == 0 and flag == True: c = c/2 d += 1 print(d)
s474975476
p03493
u395202850
1567017364
Python
Python (3.4.3)
py
Runtime Error
17
2940
23
print(input().count(1))
s145641083
p03493
u901687869
1566878846
Python
Python (3.4.3)
py
Runtime Error
17
2940
129
a = input() count = 0 if a[1:2] = "1": count += 1 if a[2:3] = "1": count += 1 if a[3:4] = "1": count += 1 print(count)
s195413740
p03493
u934529721
1566858710
Python
Python (3.4.3)
py
Runtime Error
18
3060
257
x = int(input()) a = list(map(int,input().split())) count = 0 flag = 0 while flag == 0: count += 1 for i in range(x): if a[i]%2 == 0: a[i] = a[i]/2 else: flag = flag+1 break print(count-1)
s930062330
p03493
u934529721
1566858560
Python
Python (3.4.3)
py
Runtime Error
17
3060
254
x = int(input()) a = list(map(int,input().split())) count = 0 flag = True while flag: count += 1 for i in range(x): if a[i]%2 == 0: a[i] = a[i]/2 else: flag = False break print(count-1)
s457218426
p03493
u587213169
1566838926
Python
Python (3.4.3)
py
Runtime Error
19
3060
191
input() #文字列を数字へ A=list(map(int, input().split())) count=0 #Aへの繰り返し処理 while all(i%2==0 for i in A): count+=1 A= [i/2 for i in A] print(count)
s751058726
p03493
u634384370
1566704585
Python
Python (3.4.3)
py
Runtime Error
17
3060
156
i[0] = int(input()) i[1] = int(i[0] / 10) i[2] = int(i[1] / 10) i[1] = i[1] - i[2] * 10 i[0] = i[0] - i[1] * 10 - i[2] * 100 s = i[0] + i[1] + i[2] print(s)
s435966008
p03493
u665562402
1566701541
Python
Python (3.4.3)
py
Runtime Error
17
2940
47
string s; s = input(); i = s.find("1") print(i)
s248390263
p03493
u869919400
1566679786
Python
Python (3.4.3)
py
Runtime Error
17
2940
164
n = int(input()) l = tuple(map(int, input().split())) count = 0 while all(i % 2 == 0 for i in l): count += 1 l = tuple(map(lambda x: x / 2, l)) print(count)
s318319066
p03493
u794652722
1566676896
Python
Python (3.4.3)
py
Runtime Error
18
3060
307
N = int(input()) A = list(map(int,input().split())) def even_check(A): cnt = 0 for i in range(N): if A[i]%2 == 0: cnt += 1 if cnt == N: return True total_cnt = 0 while even_check(A): for i in range(N): A[i] = A[i]/2 total_cnt += 1 print(total_cnt)
s041950423
p03493
u045408189
1566673621
Python
Python (3.4.3)
py
Runtime Error
17
2940
28
n=input() print(n.count('1')
s554125580
p03493
u587213169
1566571032
Python
Python (3.4.3)
py
Runtime Error
17
2940
23
print(input().count"1")
s861837476
p03493
u627530854
1566540734
Python
Python (3.4.3)
py
Runtime Error
17
2940
26
print(count(input(), '1'))
s518110464
p03493
u923010184
1566498646
Python
Python (3.4.3)
py
Runtime Error
17
2940
23
print(input().count(1))
s831750315
p03493
u040887183
1566340691
Python
Python (3.4.3)
py
Runtime Error
17
2940
72
count = 0 for s in input(): if int(s) == 1: count+=1 print(count)[
s603960512
p03493
u917382715
1566275550
Python
Python (3.4.3)
py
Runtime Error
17
2940
53
a, b, c = map(int, input().split()) print(a + b + c)
s995359331
p03493
u902024288
1566265051
Python
Python (3.4.3)
py
Runtime Error
18
2940
128
sum = input() cnt = 0 if sum[1] == '1' : cnt =+ 1 if sum[2] == '1': cnt =+ 1 if sum[3] == '1': cnt =+ 1 print(cnt)
s074770375
p03493
u902024288
1566264555
Python
Python (3.4.3)
py
Runtime Error
17
2940
130
sum = input() if sum[0] == 1: cnt += 1: endif if sum[1] == 1: cnt += 1: endif if sum[2] == 1: cnt += 1: endif print(cnt)
s597306169
p03493
u234631479
1566263311
Python
Python (3.4.3)
py
Runtime Error
17
3060
227
N = int(input()) A = list(map(int, input().split())) count=0 while True: for i in A: if i%2 != 0: print(int(count)) quit() A = list(map(lambda x: x/2, A)) #print(A) count+=1 #break print(int(count))
s432684049
p03493
u974935538
1566170958
Python
Python (3.4.3)
py
Runtime Error
17
3060
198
def how_many_times_divisible(n): ans = 0 while n % 2 == 0: n /= 2 ans += 1 return ans N = int(input()) a = map(int, input().split()) ans = min(map(how_many_times_divisible, a)) print(ans)
s326488493
p03493
u318165580
1566165524
Python
Python (3.4.3)
py
Runtime Error
20
2940
38
a=list(int(input())) print(a.count(1))
s271234407
p03493
u666077115
1566157308
Python
Python (3.4.3)
py
Runtime Error
17
2940
24
print(input().count("1))
s569899191
p03493
u992627775
1566141199
Python
Python (3.4.3)
py
Runtime Error
17
3060
312
import sys def half(n): return n/2 N=int(input()) A=list(map(int, input().split())) b=0 count=0 #for y in A: # if y%2!=0: # print(0) # exit() while b==0: for x in A: if x%2!=0: b+=1 if b!=0: break A=list(map(half,A)) count+=1 print(count)
s922711834
p03493
u992627775
1566140738
Python
Python (3.4.3)
py
Runtime Error
17
3064
312
import sys def half(n): return n/2 N=int(input()) A=list(map(int, input().split())) b=0 count=0 for y in A: if y%2!=0: print(0) sys.exit() while b==0: for x in A: if x%2!=0: b+=1 if b!=0: break A=list(map(half,A)) count+=1 print(count)
s822639152
p03493
u286943165
1566093376
Python
Python (3.4.3)
py
Runtime Error
17
2940
81
from sys import stdin a=stdin.readline().rstrip()) x=a.count("1") print("x")
s042212475
p03493
u286943165
1566093255
Python
Python (3.4.3)
py
Runtime Error
17
3064
60
a=stdin.readline().rstrip()) x=a.count("1") print("x")
s142464690
p03493
u286943165
1566093198
Python
Python (3.4.3)
py
Runtime Error
17
2940
67
a=int(stdin.readline().rstrip()) x=str(a).count("1") print(x)
s341402092
p03493
u286943165
1566093162
Python
Python (3.4.3)
py
Runtime Error
18
2940
56
a=stdin.readline().rstrip() x=a.count("1") print(x)
s108924043
p03493
u286943165
1566093113
Python
Python (3.4.3)
py
Runtime Error
18
2940
65
a=stdin.readline().rstrip() s=str(a) x=s.count("1") print(x)
s768121091
p03493
u286943165
1566093061
Python
Python (3.4.3)
py
Runtime Error
18
2940
56
a=stdin.readline() s=str(a) x=s.count("1") print(x)
s624009789
p03493
u286943165
1566092767
Python
Python (3.4.3)
py
Runtime Error
17
2940
34
s=str() x=s.count(1) print(x)
s496050038
p03493
u340718941
1566068442
Python
Python (3.4.3)
py
Runtime Error
17
2940
39
a =input() print(str(a.count('1'))
s016639694
p03493
u340718941
1566068066
Python
Python (3.4.3)
py
Runtime Error
18
2940
60
a, b, c =(int(x) for x in input().split()) print(str(a+b+c))
s528792159
p03493
u340718941
1566067739
Python
Python (3.4.3)
py
Runtime Error
17
2940
134
a, b, c =(int(x) for x in input().split()) count = 0 if a == 1: count++ if b == 1: count++ if c == 1: count++ print(str(count))
s419268197
p03493
u340718941
1566067724
Python
Python (3.4.3)
py
Runtime Error
17
2940
134
a, b, c =(int(x) for x in input().split()) count = 0 if a == 1: count++ if b == 1: count++ if c == 1: count++ print(str(count))
s634119503
p03493
u302292660
1566052807
Python
Python (3.4.3)
py
Runtime Error
17
2940
32
s = input() print(s.ccount("1"))
s957290311
p03493
u187779537
1566006286
Python
Python (3.4.3)
py
Runtime Error
17
2940
36
s = list(input()) print(s.count('1')
s906035906
p03493
u401902038
1565969258
Python
Python (3.4.3)
py
Runtime Error
17
2940
137
#! /usr/bin/env python # -*- coding: utf-8 -*- def main(): print(raw_input().count("1")) if __name__ == '__main__': main()
s362809330
p03493
u401902038
1565969160
Python
Python (3.4.3)
py
Runtime Error
17
2940
139
#! /usr/bin/env python # -*- coding: utf-8 -*- def main(): print(raw_input().count("1")) if __name__ == '__main__': main()
s320222639
p03493
u126887629
1565900404
Python
Python (3.4.3)
py
Runtime Error
17
2940
111
s1, s2, s3 = map(int, input().split()) i = 0 if s1 == 1: i++ if s2 == 1: i++ if s3 == 1: i++ print(i)
s400099910
p03493
u849622363
1565823160
Python
Python (3.4.3)
py
Runtime Error
17
3060
266
n = int(input()) A = list(map(int,input().split())) counter = 0 end_judge = 0 while 1: for i in range(n): if A[i]%2 == 1 or A[i]==0: end_judge = 1 else: A[i] = A[i] / 2 if end_judge == 1: break counter += 1 print(counter)
s601289295
p03493
u849622363
1565823088
Python
Python (3.4.3)
py
Runtime Error
18
3060
255
n = int(input()) A = list(map(int,input().split())) counter = 0 end_judge = 0 while 1: for i in range(n): if A[i]%2 == 1: end_judge = 1 else: A[i] = A[i] / 2 if end_judge == 1: break counter += 1 print(counter)
s051843291
p03493
u849622363
1565822697
Python
Python (3.4.3)
py
Runtime Error
19
3060
239
n = int(input()) A = list(map(int,input().split())) counter = 0 end_judge = 0 while 1: for i in range(n): if A[i]%2 == 1: end_judge = 1 else: A[i] = A[i] % 2 counter += 1 if end_judge == 1: break
s918899271
p03493
u867848444
1565800300
Python
Python (3.4.3)
py
Runtime Error
18
2940
139
n=input() s=list(map(int,input().split())) sp=0 for i in s: if i%2==0: sp+=1 continue else: break print(sp)
s322387472
p03493
u867848444
1565796651
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
s=list(input()) A=0           for i in range(3): if int(s[i])==1: A+=1 print(A)
s292523236
p03493
u908763441
1565739257
Python
Python (3.4.3)
py
Runtime Error
17
3060
373
#! /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 def main(): N, K = map(int, input().split()) A = list(map(int, input().split())) B = set(A) L = [0 for i in range(N+1)] for i in A: L[i] += 1 L.sort() if len(B) <= K: print('0') else: print(str(sum(L...
s455318736
p03493
u908763441
1565715003
Python
PyPy3 (2.4.0)
py
Runtime Error
200
38256
309
#! /Library/Frameworks/Python.framework/Versions/3.7/bin/python3 N, K = map(int, input().split()) A = list(map(int, input().split())) L = [0] * len(set(A)) tmp = 0 for i in set(A): L[tmp] = A.count(i) tmp += 1 L.sort() if len(set(A)) <= K: print('0') else: print(str(sum(L[0:len(set(A))-K])))
s760698353
p03493
u908763441
1565714866
Python
Python (3.4.3)
py
Runtime Error
17
3064
244
N, K = map(int, input().split()) A = list(map(int, input().split())) L = [0] * len(set(A)) tmp = 0 for i in set(A): L[tmp] = A.count(i) tmp += 1 L.sort() if len(set(A)) <= K: print('0') else: print(str(sum(L[0:len(set(A))-K])))
s247280807
p03493
u777780532
1565710502
Python
Python (3.4.3)
py
Runtime Error
17
2940
51
a, b, c = map(int, input().split()) print(count(1))
s948945600
p03493
u360515075
1565653455
Python
Python (3.4.3)
py
Runtime Error
17
2940
70
s = input() a = 0 for i in range(3): if s[i] = "1": a += 1 print (a)
s516646924
p03493
u699699071
1565650734
Python
Python (3.4.3)
py
Runtime Error
18
3060
346
loop = int(input()) kokuban=[int(x) for x in input().split()] print(kokuban) flag=False result =0 while(flag==False) : for index,obj in enumerate(kokuban) : print(int(obj)) if int(obj)%2 == 0: kokuban[index]= int(obj)//2 else: flag=True if flag==False : ...
s284770964
p03493
u140724346
1565568897
Python
Python (3.4.3)
py
Runtime Error
18
3060
240
N = int(input()) numbers = [x for x in map(int, input().split())] count = 0 on = True while on: val = [x % 2 == 0 for x in numbers] if False in val: print(count) break else: numbers = [x//2 for x in numbers] count += 1
s405210835
p03493
u371530330
1565497498
Python
Python (3.4.3)
py
Runtime Error
17
2940
34
s = int(input()) print(s.count(1))
s132485005
p03493
u092382030
1565484427
Python
Python (3.4.3)
py
Runtime Error
17
2940
73
s=np.array(list(map(int,input().split()))) print(np.count_nonzero(s==1))
s374918662
p03493
u092382030
1565484357
Python
Python (3.4.3)
py
Runtime Error
17
2940
67
s=np.array(map(int,input().split())) print(np.count_nonzero(s==1))
s426963351
p03493
u380524497
1565462080
Python
Python (3.4.3)
py
Runtime Error
17
3060
356
import sys input = sys.stdin.readline n, k = map(int, input().split()) a_tuple = tuple(map(int, input().split())) a_set = set(a_tuple) count_list = [] if k >= len(a_set): print(0) else: for i in a_set: count = a_tuple.count(i) count_list.append(count) count_list.sort() ans = sum(count_...
s654014800
p03493
u867849998
1565455679
Python
Python (3.4.3)
py
Runtime Error
17
2940
23
print(input().count(1))