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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s116744075 | p03493 | u328755070 | 1540650642 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 110 | s = list(map(int, input().split()))
ans = 0
for i in range(3):
if s[i] == 1:
ans += 1
print(ans)
|
s020404830 | p03493 | u935703783 | 1540582554 | Python | Python (3.4.3) | py | Runtime Error | 22 | 3188 | 115 | # -*- coding: utf-8 -*-
# スペース区切りの整数の入力
import re
a = input()
print(len(re.match("1",a))) |
s439139398 | p03493 | u935703783 | 1540582457 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 105 | # -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a = input()
print(len(re.match("1",a))) |
s474888852 | p03493 | u935703783 | 1540582322 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 104 | # -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a = input()
print len(re.match("1",a)) |
s452121313 | p03493 | u698151863 | 1540582269 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 95 | # -*- coding: utf-8 -*-
# 整数の入力
a = int(input())
print(sum(list(map(int, list(a)))))
|
s211981264 | p03493 | u935703783 | 1540582258 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | # -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a = input()
print re.match("1",a) |
s954441768 | p03493 | u935703783 | 1540582225 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | # -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a = input()
print re.match("1",s) |
s916403868 | p03493 | u595539169 | 1540535822 | Python | Python (3.4.3) | py | Runtime Error | 2103 | 3060 | 286 | n = int(input())
a = []
for i in range(n):
a.append(int(input()))
count = 0
while(True):
odd = False
for i in range(n):
if((a[i] % 2) != 0):
odd = True
if(odd):
break
for i in range(n):
a[i] /= 2
count += 1
print(count)
|
s395794110 | p03493 | u595539169 | 1540436602 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | s = input()
c = 0
if(s[0] == "1"):
c++
if(s[1] == "1"):
c++
if(s[2] == "1"):
c++
|
s255620949 | p03493 | u233131404 | 1540406723 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 276 | n,k=map(int,input().split())
A=list(map(int,input().strip().split(" ")))
ANS=[]
for i in range(100000):
ANS.append(A.count(i))
ANS.sort(reverse=True)
B=[e for e in ANS if e>0]
P=[]
if len(B)<=k:
print(0)
else:
for i in B[k:]:
P.append(i)
print(sum(P)) |
s061308504 | p03493 | u524765246 | 1540015443 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 117 | mas = [int(i) for i in input().split()]
count = 0
for j in len(mas):
if mas[j] == 1:
count += 1
print(count) |
s128398960 | p03493 | u124070765 | 1539787423 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | n=int(input())
a=list(map(int,input().split()))
ans=float("inf")
for i in a:
i=bin(i).count("0")
if ans > i :
ans=i
print(ans) |
s710015564 | p03493 | u518556834 | 1539485345 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 42 | a = list(str(input()))
print(s.count("1")) |
s901182905 | p03493 | u546943614 | 1539420061 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 23 | print(input.count("1")) |
s925589011 | p03493 | u506689504 | 1538890831 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 143 | 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) |
s265086943 | p03493 | u506689504 | 1538890741 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | n = input()
a = list(map(int, input().split()))
ans = float("inf")
for i in a:
ans = min(ans, len(a) - bin(a).rfind("1")-1)
print(ans)
|
s893573368 | p03493 | u061898182 | 1538820645 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 24 | print(input.count("1"))
|
s061274504 | p03493 | u655227110 | 1538545358 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 68 | s = input()
cnt = 0
for c in s:
if c == "1":
cnt += 1
print(cmt) |
s269579605 | p03493 | u466478199 | 1537585474 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 252 | N,K=map(int,input().split())
A=list(map(int,input().split()))
L=[]
A.sort()
A.append(200001)
for i in range(N):
if A[i]==A[i+1]:
continue
else:
x=A.count(A[i])
L.append(x)
L.sort(reverse=True)
S=0
for i in range(K):
S+=L[i]
print(N-S) |
s001014029 | p03493 | u514383727 | 1537498589 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 30 | s = input()
print(s.count("1!) |
s883267299 | p03493 | u466478199 | 1537392244 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 214 | N=int(input())
A=list(map(int,input().split()))
flag=0
for x in range(100):
for y in range(N):
if A[y]%2==0:
A[y]=A[y]/2
else:
print(x)
flag=1
break
if flag==1:
break
|
s178083311 | p03493 | u466478199 | 1537392175 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 214 | N=int(input())
A=list(map(int,input().split()))
flag=0
for x in range(100):
for y in range(N):
if A[y]%2==0:
A[y]=A[y]/2
else:
print(x)
flag=1
break
if flag==1:
break
|
s410551166 | p03493 | u462214100 | 1536877682 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 62 | s = input()
for i in s:
if i == '1':
c += i
print(c) |
s020163288 | p03493 | u207630845 | 1536648880 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 50 | a= list(map(int,input().split("0")))
print(sum(a)) |
s255968756 | p03493 | u601082779 | 1536029189 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 23 | print(input().count(1)) |
s812094840 | p03493 | u383267466 | 1535753612 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 30 | print(sum(list(int(input())))) |
s934670457 | p03493 | u383267466 | 1535753554 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 25 | print(sum(list(input()))) |
s143416916 | p03493 | u444856278 | 1535659253 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 316 | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i,n) for(ll i=0;i<n;i++)
#define IREP(i,n) for(ll i=1;i<n;i++)
#define FOR(i,a,b) for(ll i=a;i<b;i++)
#define DEBUG(x) cerr << x << "\n"
int main(){
string s;
cin >> s;
cout << count(s.begin(),s.end(),'1');
return 0;
} |
s001195730 | p03493 | u879945900 | 1535392675 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 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)) |
s735553666 | p03493 | u879945900 | 1535392494 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 167 | 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)) |
s621601938 | p03493 | u879945900 | 1535392343 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 173 | import math
N = input()
list = list(map(int, input().split()))
ans = float("inf")
for a in list:
ans = min(ans, len(bin(a)) - bin(a).rfind("1") - 1)
print(round(ans)) |
s273556472 | p03493 | u879945900 | 1535392291 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 161 | N = input()
list = list(map(int, input().split()))
ans = float("inf")
for a in list:
ans = min(ans, len(bin(a)) - bin(a).rfind("1") - 1)
print(round(ans)) |
s382472156 | p03493 | u879945900 | 1535392194 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 154 | N = input()
list = list(map(int, input().split()))
ans = float("inf")
for a in list:
ans = min(ans, len(bin(a)) - bin(a).rfind("1") - 1)
print(ans) |
s337681457 | p03493 | u138486156 | 1534825515 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 282 | N = int(input())
list = input().split()
num_list = []
for c in list:
n = int(c)
num_list.append(n)
state = True
i = 0
while state:
for n in num_list:
if n % 2:
state = False
else:
n /= 2
if state:
i += 1
print(i)
|
s461413587 | p03493 | u659640418 | 1534122832 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 151 | 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)) |
s382086002 | p03493 | u710921979 | 1533836747 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3316 | 138 | import collections
N,K=map(int,input().split())
c=sorted(collections.Counter(list(map(str,input().split()))).values())
print(sum(c[:-K]))
|
s672278763 | p03493 | u498486375 | 1533436216 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 242 | N=int(input())
l=list(map(int, input().split()))
n=0
def power(figure):
if figure%2==0:
return True
else:
return False
while len(list(filter(power,l)))==N:
n+=1
k=map(lambda x: x/2,l)
l=list(k)
print(n) |
s905530927 | p03493 | u498486375 | 1533436175 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 242 | N=int(input())
l=list(map(int, input().split()))
n=0
def power(figure):
if figure%2==0:
return True
else:
return False
while len(list(filter(power,l)))==N:
n+=1
k=map(lambda x: x/2,l)
l=list(k)
print(n) |
s166849755 | p03493 | u933622697 | 1533434328 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 316 | n = int(input())
a_list = list(map(int, input().split()))
n_operation = 0
for i in range(n):
even_len = len([a for a in a_list if a % 2 == 0])
if len(a_list) != even_len:
print(n_operation)
exit()
else:
a_list = [a / 2 for a in a_list]
n_operation += 1
print(n_operation) |
s761215088 | p03493 | u933622697 | 1533154678 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 356 | n = int(input())
a_list = list(map(int, input().split())) # list()を忘れずに
def odd_detector(a_list):
is_odd = 0
for a_i in a_list:
if a_i % 2 == 1:
is_odd = 1
break
return is_odd
n_division = 0
while odd_detector(a_list) == 0:
a_list = [a / 2 for a in a_list]
n_divisio... |
s628104489 | p03493 | u933622697 | 1533153177 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 360 | n = int(input())
a_list = list(map(int, input().split())) # list()を忘れずに
n_division = 0
def odd_detector(a_list):
is_odd = 0
for a_i in a_list:
if a_i % 2 == 1:
is_odd = 1
break
return is_odd
while odd_detector(a_list) == 0:
a_list = [int(a/2) for a in a_list]
n_div... |
s482531911 | p03493 | u933622697 | 1533153154 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 360 | n = int(input())
a_list = list(map(int, input().split())) # list()を忘れずに
n_division = 0
def odd_detector(a_list):
is_odd = 0
for a_i in a_list:
if a_i % 2 == 1:
is_odd = 1
break
return is_odd
while odd_detector(a_list) == 0:
a_list = [int(a/2) for a in a_list]
n_div... |
s592232602 | p03493 | u933622697 | 1533153102 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 354 | n = int(input())
a_list = list(map(int, input().split())) # list()を忘れずに
n_division = 0
def odd_detector(a_list):
is_odd = 0
for a_i in a_list:
if a_i % 2 == 1:
is_odd = 1
break
return is_odd
while odd_detector(a_list) == 0:
a_list = [a/2 for a in a_list]
n_division... |
s540451082 | p03493 | u933622697 | 1533152801 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 389 | # 初見不正解:RE (Runtime Error)
n = int(input())
a_list = list(map(int, input().split())) # list()を忘れずに
n_division = 0
is_odd = 0
def odd_detector(a_list):
for a_i in a_list:
if a_i % 2 == 1:
is_odd = 1
break
return is_odd
while odd_detector(a_list) == 0:
a_list = [a/2 for a in... |
s579843392 | p03493 | u933622697 | 1533152665 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 353 | n = int(input())
a_list = list(map(int, input().split())) # list()を忘れずに
n_division = 0
is_odd = 0
def odd_detector(a_list):
for a_i in a_list:
if a_i % 2 == 1:
is_odd = 1
break
return is_odd
while odd_detector(a_list) == 0:
alist = [a/2 for a in a_list]
n_division += 1... |
s523065705 | p03493 | u065923107 | 1532708384 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 23 | print(input().count(1)) |
s426196882 | p03493 | u009219947 | 1531828574 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 249 | _ = input()
num_list = input().split(" ")
num_list = list(map(lambda x:int(x), num_list))
shift_counter = 0
while(True):
if sum(num_list) % 2 != 0:
break
num_list = [x / 2 for x in num_list]
shift_counter += 1
print(shift_counter) |
s030736323 | p03493 | u009219947 | 1531828562 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 267 | _ = input()
num_list = input().split(" ")
num_list = list(map(lambda x:int(x), num_list))
shift_counter = 0
while(True):
print(num_list)
if sum(num_list) % 2 != 0:
break
num_list = [x / 2 for x in num_list]
shift_counter += 1
print(shift_counter) |
s477372322 | p03493 | u009219947 | 1531538303 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3064 | 236 | _ = input()
num_list = input().split(" ")
num_list = list(map(lambda x:int(x), num_list))
min_num = min(num_list)
shift_counter = 0
while(True):
if min_num == 1:
break
min_num /= 2
shift_counter += 1
print(shift_counter) |
s160449115 | p03493 | u050698451 | 1531270187 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 76 | s = input()
sum = 0
for i in range(0,len[s]):
sum += int(s[i])
return(sum)
|
s128653109 | p03493 | u050698451 | 1531270145 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 67 | s = input()
sum = 0
for i in range(0,len[s]):
sum += i
return(sum) |
s117807987 | p03493 | u955547613 | 1531119057 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 83 | a = str(input())
count = 0
for s in a:
if int(s) == 1:
count++
print(count) |
s711782515 | p03493 | u594762426 | 1531110739 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 52 | s1,s2,s3 = map(int, input().split())
print(s1+s2+s3) |
s642069456 | p03493 | u176796545 | 1530494535 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 134 | N = input()
A = list(map(int, input().split()))
cnt = 0
while all(a%2==0 for a in A):
A = [a/2 for a in A]
cnt += 1
print(cnt) |
s556548207 | p03493 | u176796545 | 1530494487 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 128 | n = input()
A = list(map(int, input().split()))
c = 0
while all(a%2==0 for a in A):
A = [a/2 for a in A]
c += 1
print(c) |
s573173792 | p03493 | u176796545 | 1530494196 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 138 | n=int(input())
A=list(map(int,input().split()))
c=0
while(all([a%2==0 for a in A])):
A = list(map(lambda i:i//2, A))
c+=1
print(c) |
s600512759 | p03493 | u176796545 | 1530494108 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 138 | n=int(input())
A=list(map(int,input().split()))
c=0
while(all([a%2==0 for a in A])):
A = list(map(lambda i:i//2, A))
c+=1
print(c) |
s189188385 | p03493 | u506302470 | 1530416895 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38640 | 176 | A=int(input())
B=input().split()
ans=111111111
for i in range(A):
C=B[i]
cnt=0
while C%2==0:
C//=2
cnt+=1
if ans>cnt:
ans=cnt
print(ans) |
s216056093 | p03493 | u506302470 | 1530416719 | Python | PyPy3 (2.4.0) | py | Runtime Error | 164 | 38384 | 98 | A=input()
cnt=0
if A[0]=='1':
cnt++
if A[1]=='1':
cnt++
if A[2]=='1':
cnt++
print(cnt) |
s972123768 | p03493 | u176796545 | 1530381630 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 24 | print(input().count('1') |
s840199366 | p03493 | u474270503 | 1529854197 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 46 | a = list(str(int(input)))
print(a.count("1"))
|
s852889978 | p03493 | u763692180 | 1529613262 | 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)) |
s627359981 | p03493 | u813102292 | 1529368976 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 39 | s = string(input())
print(s.count('1')) |
s514789625 | p03493 | u813102292 | 1529368908 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 40 | s = strings(input())
print(s.count('1')) |
s999138290 | p03493 | u253041628 | 1528812249 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 129 | #codigng: utf-8
from sys import stdin
bin = list(stdin.readline().rstrip())
one = [x for x in bin if x == '1']
print(len(one)
|
s744912997 | p03493 | u021166294 | 1528079522 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 391 | def num_2n(i):
count = 0
while(i % 2 == 0):
i = i / 2
count += 1
return count
def main():
num_ans = int(input())
ans_list = list(map(int, input().split()))
num_2n_list =[]
for i in ans_list:
num_2n_list.append(num_2n(i))
num_2n_list.sort()
num_2n_list.rever... |
s432504582 | p03493 | u021166294 | 1528079477 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 387 | def num_2n(i):
count = 0
while(i % 2 == 0):
i = i / 2
count += 1
return count
def main():
num_ans = int(input())
ans_list = list(map(int, input().split()))
num_2n_list =[]
for i in ans_list:
num_2n_list.append(num_2n(i))
num_2n_list.sort()
num_2n_list.rever... |
s952694676 | p03493 | u308588791 | 1527656345 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 322 | number = int(input())
num_list = list(map(int, input().split()))
count = 0
for i in num_list:
if i % 2 == 0:
count += 1
# print(count)
else:
print(0)
break
count_s = 0
if count == number:
num_min = min(num_list)
while num_min % 2 == 0:
num_min = num_min / 2
count_s += 1
print(count_s... |
s319972097 | p03493 | u308588791 | 1527655828 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 346 | number = int(input())
num_list = list(map(int, input().split()))
count = 0
for i in num_list:
if i % 2 == 0:
count += 1
# print(count)
else:
print(0)
break
count_s = 0
if count == number:
num_min = min(num_list)
while True:
num_min = num_min / 2
count_s += 1
if num_min == 1:
... |
s403228071 | p03493 | u987208743 | 1527047553 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 43 | line = int(intput())
print(line.count('1')) |
s773469767 | p03493 | u123896133 | 1526611209 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | s = list(map(int,input().split()))
cnt=0
for i in range(3):
if s[i]==1:
cnt+=1
print(cnt) |
s010268777 | p03493 | u289923433 | 1526437578 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 85 | input = input()
num = 0
for i in range(2):
if (input[i] == 1):
num++
print(i) |
s188142003 | p03493 | u289923433 | 1526437535 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 85 | input = input()
num = 0
for i in range(3):
if (input[i] == 1):
num++
print(i) |
s054745197 | p03493 | u624454569 | 1526354614 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 93 | int x = input()
if x/100==1:
ans++
if x/10==1:
ans++
if x/1 == 1:
ans++
print ans |
s731637736 | p03493 | u964998676 | 1526321994 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 127 | digits = input('')
count = 0
if digits[0] == 1:
count++
if digits[1] == 1:
count++
if digits[2] == 1:
count++
print count |
s076396073 | p03493 | u879309973 | 1526099450 | Python | Python (2.7.6) | py | Runtime Error | 99 | 10780 | 434 | import numpy as np
n = input()
a = map(int, raw_input().split())
max_i = np.argmax(a)
min_i = np.argmin(a)
ans = []
if abs(a[max_i]) >= abs(a[min_i]):
for i in range(n):
ans.append((max_i, i))
for i in range(n-1):
ans.append((i, i+1))
else:
for i in range(n):
ans.append((min_i, i))
... |
s255482189 | p03493 | u777607830 | 1526042551 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 54 | https://beta.atcoder.jp/contests/abc081/tasks/abc081_a |
s483156334 | p03493 | u330176731 | 1525500574 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 90 | n = list(map(int, input()))
count = 0
for i in range n: if i == 1: count += 1
print(count) |
s376155394 | p03493 | u314219654 | 1524689208 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | import std.stdio, std.string, std.conv, std.range, std.string, std.array;
void main(){
auto ip = readln.chomp;
writeln(ip.count('1'));
} |
s783109526 | p03493 | u443569380 | 1524607907 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 176 | def abe(n):
count = 0
while n % 2 ==0:
n = n / 2
count += 1
return count
x = int(input())
y = map(int,input().split())
z = min(map(abe,y))
print(z) |
s722400426 | p03493 | u192903163 | 1522635515 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 69 | a = str(input())
b=0
for c in range(3):
if a[c]=='1':
b++
print(b) |
s800530131 | p03493 | u219369949 | 1522532397 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 297 | n = int(input())
a = list(map(int, input().split()))
counter = 0
while True:
exist_odd = False
for i in range(n):
if (a[i] % 2 != 0):
exist_odd = True
if exist_odd:
break
for i in range(n):
a[i] = a[i] // 2
counter += 1
print(counter) |
s173549318 | p03493 | u051751608 | 1521609587 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 27 | print(input().count("1"))
|
s552659766 | p03493 | u051751608 | 1521609466 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 27 | print(input().count("1"))
|
s294274538 | p03493 | u524619829 | 1521355293 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 269 | # -*- coding: utf-8 -*-
def main():
input_char_list = list(raw_input("type 3 digits number using only 0 or 1: "))
count = 0
for char in input_char_list:
if char == '1':
count += 1
print(count)
if __name__ == '__main__':
main()
|
s185664371 | p03493 | u319612498 | 1521332368 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 492 | n=int(input())
a=list(map(int,input().split()))
ans=0
a_max=max(a)
a_min=min(a)
if a_min>=0:
adding=a_max
elif a_min<0 and a_max>0:
if abs(a_max)>=abs(a_min):
adding=a_max
else:
adding=a_min
else:
adding=a_min
ind=a.index(adding)
proc=[]
for i in range(n):
ans+=1
a[i]+=adding
... |
s653457693 | p03493 | u047668580 | 1521306909 | Python | Python (3.4.3) | py | Runtime Error | 290 | 20608 | 249 | import numpy as np
l = int(input())
a = [ np.int(x) for x in input().split() ]
a = np.array(a, dtype = 'int32')
ans = 0
while True:
b = a / 2
c = a // 2
if (b - c).any():
break
else:
a = b
ans += 1
print(ans) |
s774045569 | p03493 | u757919796 | 1521130379 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 2940 | 164 | N = int(input())
As = [int(input()) for _ in range(N)]
sunuke = 0
while all([a % 2 == 0 for a in As]):
sunuke += 1
As = [a // 2 for a in As]
print(sunuke)
|
s580705623 | p03493 | u757919796 | 1521130079 | Python | Python (3.4.3) | py | Runtime Error | 2104 | 2940 | 163 | N = int(input())
As = [int(input()) for _ in range(N)]
sunuke = 0
while all([a % 2 == 0 for a in As]):
sunuke += 1
As = [a / 2 for a in As]
print(sunuke)
|
s254291285 | p03493 | u131273629 | 1521027688 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 36 | s = int(list(input()))
print(sum(s)) |
s984467383 | p03493 | u491789651 | 1520571932 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 64 | a,b,c = map(int,input().split())
list = [a,b,c]
list.count("1")
|
s366901399 | p03493 | u321354941 | 1519158206 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 147 | x = str(input()).split(" ")
n = int(x[0])
a = int(x[1])
b = int(x[2])
plan1 = n*a
plan2 = b
if plan1 >= plan2:
print(plan2)
else:
print(plan1) |
s863518024 | p03493 | u667949809 | 1518916250 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 196 | n = int(input())
a = [int(x) for x in input().split()]
num = 0
while True:
for i in n:
if a[i] % 2 == 1:
return ans
else:
a[i] = a[i] / 2
num += 1 |
s771277579 | p03493 | u030726788 | 1518897060 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | s=input()
num=0
if (s[0]==1):
num++
if (s[1]==1):
num++
if (s[2]==1):
num++
print(num) |
s512079638 | p03493 | u748135969 | 1518567594 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | s = input()
count = 0
for i in (len(s)):
if s[i] == '1':
count = count + 1
print(count) |
s980545989 | p03493 | u102930666 | 1517276685 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 50 | a,b,c =map(int,input().split())
s = a+b+c
print(s) |
s598728398 | p03493 | u879309973 | 1516370763 | Python | Python (2.7.6) | py | Runtime Error | 108 | 11136 | 583 | import numpy as np
def solve(N, K, A):
numbers = {}
for a in A:
numbers[a] = numbers.get(a, 0) + 1
M = len(numbers)
if M <= K:
return 0
dp = np.full((M+1, M+1), N, dtype=int)
dp[0,:] = 0
for i, n in enumerate(numbers.values()):
for j in range(M+1):
if j > ... |
s771901145 | p03493 | u523964576 | 1516334896 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 69 | s=input()
c=0
for i in range(s):
if i=='1':
c+=1
print(c) |
s817523410 | p03493 | u641097045 | 1516130725 | Python | Python (2.7.6) | py | Runtime Error | 93 | 10540 | 2932 | import numpy as np
import pdb
'''
From first element, look through the sequence
until you encounter first element that is smaller than
its predecessor.
Take the difference, and find the minimum number that can
one can add to make the sequence appropriate.
I was shooting for
O(N**2), nut no, not with this.
This prob... |
s068958637 | p03493 | u216962796 | 1515714061 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 113 | print({
'000': 0,
'001': 1,
'010': 1,
'011': 2,
'100': 1,
'101': 2,
'110': 2,
'111' 3
}[input()]) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.