Problem:


Score : 100 points

Problem Statement

Snuke has a grid consisting of three squares numbered 1, 2 and 3.
In each square, either 0 or 1 is written. The number written in Square i is s_i.

Snuke will place a marble on each square that says 1.
Find the number of squares on which Snuke will place a marble.

Constraints

Each of s_1, s_2 and s_3 is either 1 or 0.

Input

Input is given from Standard Input in the following format:

s_{1}s_{2}s_{3}

Output

Print the answer.

Sample Input 1

101

Sample Output 1

2

A marble will be placed on Square 1 and 3.

Sample Input 2

000

Sample Output 2

0

No marble will be placed on any square.



Sample input:
101


Sample output:
2

Submission status: Wrong Answer

Solution code:
a = input()
a.count('1')

Submission status: Wrong Answer

Solution code:
s = "101"
print(s)

counter = 0

if (s[0] == "1"):
    counter = counter + 1
if (s[1] == "1"):
    counter = counter+1
if (s[2] == "1"):
    counter = counter+1

print(counter)

Submission status: Wrong Answer

Solution code:
s = input()

cnt = sum([int(c) for c in s])

Submission status: Wrong Answer

Solution code:
s = input()
a = int(s.count('o'))
print(int(700+a*100))

Submission status: Wrong Answer

Solution code:
#第2問 ABC081A
s = input()
a = int(s.count('o'))
print(int(700+a*100))

Submission status: Wrong Answer

Solution code:
s = input()

print(s.count("A"))

Submission status: Wrong Answer

Solution code:
s = list(input()) 
s.count(1)

Submission status: Wrong Answer

Solution code:
s = list(input()) 
s.count("1")

Submission status: Wrong Answer

Solution code:
a = input()
if a[0] == a[1] == a[2] == 1:
  print(3)
elif a[0] == a[1] == a[2] == 0:
  print(0)
elif a[0] == a[1] == 1 or a[1] == a[2] == 1:
  print(2)
elif a[0] == a[1] == 1 or a[1] == a[2] == 0:
  print(1)

Submission status: Wrong Answer

Solution code:


# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    s = input()
    
    count = 0
    for n in range(3):
        if s[n] == 1:
            count = count + 1
    
    print(count)

Submission status: Wrong Answer

Solution code:
s = list(map(int, input().split()))
print(s.count(1))

Submission status: Wrong Answer

Solution code:
s = input()
s.count('1')

Submission status: Wrong Answer

Solution code:
arr = map(int,input().split())
print(sum(arr))

Submission status: Wrong Answer

Solution code:
# coding= utf-8
lol=input("")
S1=int(lol[0:1])
S2=int(lol[1:2])
S3=int(lol[2:3])
Ss=[S1,S2,S3]
cnt=0
Ss.sort()
print(Ss)
while 1 in Ss:
  cnt += 1
  del Ss[-1]
else:
  print(cnt)

Submission status: Wrong Answer

Solution code:
# coding= utf-8
lol=input("")
S1=int(lol[0:1])
S2=int(lol[1:2])
S3=int(lol[2:3])
Ss=[S1,S2,S3]
cnt=0
Ss.sort()
if 1 in Ss:
  cnt += 1
  del Ss[0]
else:
  print(cnt)

Submission status: Wrong Answer

Solution code:
s = input()
print(s.count("0"))

Submission status: Wrong Answer

Solution code:
i = int(input())

k = 100
cnt = 0
while k > 0:
  if i // k == 1:
    cnt += 1
    
  i %= 100
  k //= 10
  
print(cnt)

Submission status: Wrong Answer

Solution code:
sl = [int(x) for x in input().split()]
n=0
for s in sl:
  if s==1:
    n+=1

print(n)

Submission status: Wrong Answer

Solution code:
n = input()

count = 0
if(n[0]=='1'):
  count+=1
elif(n[1]=='1'):
  count+=1
elif(n[2]=='1'):
  count+=1

print(count)

Submission status: Wrong Answer

Solution code:
n_1 = 0

a = list(str(input()))
print(a)
for i in a:
    if i == "1":
        n_1 += 1

print(n_1)

Submission status: Wrong Answer

Solution code:
li = list(input())
print(li)
cnt = 0 
101
if (li[0] == "1"):
    cnt += 1
if (li[1] == "1"):
    cnt += 1
if (li[2] == "1"):
    cnt += 1

print(cnt)

Submission status: Wrong Answer

Solution code:
numList = list(input())
total = 0
for i in range(len(numList)):
  total += i
print(total)

Submission status: Wrong Answer

Solution code:
num = int(input())
a = num // 100
b = num // 10 - (a * 10)
c = num - (a * 100) - (b * 10)
print(a, b, c)
print(a + b + c)

Submission status: Wrong Answer

Solution code:
num = int(input())
a = num // 100
b = num // 10 - (a * 10)
c = num - (a * 100) - (b * 10)
print(num)
print(a, b, c)

Submission status: Wrong Answer

Solution code:
s = input()
s1 = int(s[0])
s2 = int(s[1])
s3 = int(s[2])
ans = 0
if s1 == 1:
    ans += 1
elif s2 ==1:
    ans += 1
elif s3 == 1:
    ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
x = str(input())
a =x[0]
b=x[1]
c=x[2]


print(a+b+c)

Submission status: Wrong Answer

Solution code:
s = input()

res = 0

for i in range(3):
  if s[i] == 1:
    res += 1
    
print(res)

Submission status: Wrong Answer

Solution code:
s = str(input())
int(s[0]) + int(s[1]) + int(s[2])

Submission status: Wrong Answer

Solution code:
s = input()
s[0] + s[1] + s[2]

Submission status: Wrong Answer

Solution code:
s = list(map(int, input().split()))
print(sum(s))

Submission status: Wrong Answer

Solution code:
s = list(map(str, input().split()))
counter = 0

for si in s:
    if si == '1':
        counter += 1
print(counter)

Submission status: Wrong Answer

Solution code:
from sys import stdin

n = stdin.readline().rstrip()
a = [int(x) for x in stdin.readline().rstrip().split()]

minc = 10**9

for b in a:
    count = 0
    while True:
        if b % 2 == 1: break
        b = b//2
        count = count + 1

    minc = min([minc, count])

print(minc)

Submission status: Wrong Answer

Solution code:
from sys import stdin

a = stdin.readline().rstrip()

count = 0
print (a[0],a[1],a[2])
for b in a:
  if b == "1": count = count + 1

print(count)

Submission status: Wrong Answer

Solution code:
# B-Shift only
def B_shift_only():

    try:
        # 正の整数の個数Nの入力
        N = input()

        # N個分の整数を入力
        Nums = list(map(int, input().split()))
    except EOFError:
        pass

    # 最大操作回数のカウント
    max_divide_count = 0
    while():
        count_num_tmp = 0
        for num in Nums:
            if num % 2 == 0:
                count_num_tmp = count_num_tmp + 1    
            else:
                break
    
        if Nums.len != count_num_tmp:
            break
        else:
            max_divide_count = max_divide_count + 1;

    # 最大結果出力
    print(max_divide_count)

if __name__ == "__main__":
    B_shift_only()

Submission status: Wrong Answer

Solution code:
X = input()
X.count('1')

Submission status: Wrong Answer

Solution code:
# B-Shift only
def B_shift_only():

    try:
        # 正の整数の個数Nの入力
        N = input()

        # N個分の整数を入力
        for i in range(int(N)):
            input_tmp = input()
            Nums.append(input_tmp)
    except EOFError:
        pass

    # 最大操作回数のカウント
    max_divide_count = 0
    while():
        count_num_tmp = 0
        for num in Nums:
            if num % 2 == 0:
                count_num_tmp = count_num_tmp + 1    
            else:
                break
    
        if Nums.len != count_num_tmp:
            break
        else:
            max_divide_count = max_divide_count + 1;

    # 最大結果出力
    print(max_divide_count)

if __name__ == "__main__":
    B_shift_only()

Submission status: Wrong Answer

Solution code:
def resolve():
    s = input()
    ans = s.count("1")
    print(ans)

Submission status: Wrong Answer

Solution code:
S = input()
List = [S[0], S[1], S[2]]
res = 0
for i in range(3):
  if List[i] == 1:
    res +=1
print(res)

Submission status: Wrong Answer

Solution code:
s = input()
count = 0
print(count)

Submission status: Wrong Answer

Solution code:
a = int(input())
if a%3 ==2:
    2
elif a%3 ==1:
    1
elif a == 111:
    3
else :
    0

Submission status: Wrong Answer

Solution code:
# input
S = list(input())

# check
print(S.count(1))

Submission status: Wrong Answer

Solution code:
print(input().count('0'))

Submission status: Wrong Answer

Solution code:
n=list(map(int,input().split()))
print(n.count(1))

Submission status: Wrong Answer

Solution code:
a=int(input())
sum=0
if a//100==1:
   sum+=1
print(sum)
if a//10==1 or a//10==11:
    sum+=1
print(sum)
print(a//10)
if a%2==1:
    sum+=1
print(sum)

Submission status: Wrong Answer

Solution code:
a=int(input())
sum=0
if a//100==1:
    sum+=1
if a//10==(1 or 11):
    sum+=1
if a%2==1:
    sum+=1
print(sum)

Submission status: Wrong Answer

Solution code:
a = input().split()
print(a.count('1'))

Submission status: Wrong Answer

Solution code:
s = "101"
print(s.count("1"))

Submission status: Wrong Answer

Solution code:
s = "101"
s = list(map(int, (s[0] + s[2])))
print(sum(s))

Submission status: Wrong Answer

Solution code:
s = "110"
t = int(s[0])
r = int(s[1])
s = t + r
print(s)

Submission status: Wrong Answer

Solution code:
s = int(input())
if s == 0:
  print(0)
elif s == 1 or 10 or 100:
  print(1)
elif s == 11 or 101 or 110:
  print(2)
else:
  print(3)

Submission status: Wrong Answer

Solution code:
n = input().split()
ans = 0
for i in range(len(n)):
    ans += int(n[i])
print(ans)

Submission status: Wrong Answer

Solution code:
n = map(int,input().split())
print(sum(n))

Submission status: Wrong Answer

Solution code:
s=input()
ans=0
for i in range(3):
  if s[i]=="1":
    ans+=1

Submission status: Wrong Answer

Solution code:
input().count('1')

Submission status: Wrong Answer

Solution code:
num = map(int, input().split())
a = 0
for i in num:
  if i == 1:
    a += 1

print(a)

Submission status: Wrong Answer

Solution code:
input().count("1")

Submission status: Wrong Answer

Solution code:
xs = map(int, input().split(' '))
print(sum(xs))

Submission status: Wrong Answer

Solution code:
s = int(input())

ans = 0

if s%10==1:
  ans += 1

s = s//10
if s%10==1:
  ans += 1

s = s//10
if s==1:
  ans += 1
  
print(ans+1)

Submission status: Wrong Answer

Solution code:
import numpy as np

s_list = [int(i) for i in list(input())]
ans = np.count_nonzero(s_list!=0)

print(ans)

Submission status: Wrong Answer

Solution code:
abc = input().split()
print(abc.count("1"))

Submission status: Wrong Answer

Solution code:
s = list(map(int, input().split()))
k = 0
for i in s:
  k += i
print(k)

Submission status: Wrong Answer

Solution code:
s = list(map(int, input().split()))
k = 0
for i in s:
  k += i
print(k)

Submission status: Wrong Answer

Solution code:
s = list(map(int,input().split()))
print(s.count(1))

Submission status: Wrong Answer

Solution code:
A = input().split()
print(A.count("1"))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

def div(n):
    return int(n / 2)

#N = int(input())
A = list(map(int, input().split()))

r = 0
flag = False
while (True):
    for x in A:
        if x % 2 == 1:
            flag = True
            break

    if (flag):
        break

    r += 1
    A = list(map(div, A))    
    
print(r)

Submission status: Wrong Answer

Solution code:
print(list(input()))

Submission status: Wrong Answer

Solution code:
print(input().count("0"))

Submission status: Wrong Answer

Solution code:
word = list(input())
print(word)
count = 0
for a in word :
    if a == "1" :
        count = count + 1
print(count)

Submission status: Wrong Answer

Solution code:
s = list(map(int,input().split()))

temp = 0

for n in s:
    if n % 2:
        temp += 1

print(temp)

Submission status: Wrong Answer

Solution code:
numbers = input()
print(numbers)
if int(numbers) == 0: 
    print(0)
elif int(numbers) == 111:
    print(3)
elif int(numbers) == 101 or int(numbers) == 110 or int(numbers) == 11:
    print(2)
else:
    print(1)

Submission status: Wrong Answer

Solution code:
numbers = input()
print(numbers)
if int(numbers) == 000: 
    print(0)
elif int(numbers) == 111:
    print(3)
elif int(numbers) == 101 or int(numbers) == 110 or int(numbers) == 11:
    print(2)
else:
    print(1)

Submission status: Wrong Answer

Solution code:
nums = list(map(int, input().split()))

print(nums.count(1))

Submission status: Wrong Answer

Solution code:
vec = str(input())
ball = vec.split("0")
print(len(ball))

Submission status: Wrong Answer

Solution code:
from collections import Counter
s = input()
count = Counter(s)
count["1"]

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

#############
# Libraries #
#############

import sys
input = sys.stdin.readline

import math
from collections import deque
from fractions import gcd
from functools import lru_cache


#############
# Constants #
#############

MOD = 10**9+7
INF = float('inf')

#############
# Functions #
#############

######INPUT######
def inputI(): return int(input().strip())
def inputS(): return input().strip()
def inputIL(): return list(map(int,input().split()))
def inputSL(): return list(map(str,input().split()))
def inputILs(n): return list(int(input()) for _ in range(n))
def inputSLs(n): return list(input().strip() for _ in range(n))
def inputILL(n): return [list(map(int, input().split())) for _ in range(n)]
def inputSLL(n): return [list(map(str, input().split())) for _ in range(n)]

#####Inverse#####
def inv(n): return pow(n, MOD-2, MOD)

######Combination######
kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n):
    return kaijo_memo[n]
  if(len(kaijo_memo) == 0):
    kaijo_memo.append(1)
  while(len(kaijo_memo) <= n):
    kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n):
    return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0):
    gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n):
    gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if(n == r):
    return 1
  if(n < r or r < 0):
    return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret

######Factorization######
def factorization(n):
    arr = []
    temp = n
    for i in range(2, int(-(-n**0.5//1))+1):
        if temp%i==0:
            cnt=0
            while temp%i==0:
                cnt+=1
                temp //= i
            arr.append([i, cnt])
    if temp!=1:
        arr.append([temp, 1])

    if arr==[]:
        arr.append([n, 1])
    return arr

#####LCM#####
def lcm(a, b):
    return a * b // gcd (a, b)

#############
# Main Code #
#############

print(sum(list(map(int,inputSL()))))

Submission status: Wrong Answer

Solution code:
s=input()
s.count("1")

Submission status: Wrong Answer

Solution code:
s=input()
c=0
for i in range(0, 2):
    if s[i]=="1":
        c+=1

print(c)

Submission status: Wrong Answer

Solution code:
s=list(map(int,input().split()))
print(s.count(1))

Submission status: Wrong Answer

Solution code:
import sys

l = list(map(int, input().split()))

loop = 0

while (1):
  for i in l:
    if (i % (2 * (loop + 1)) != 0):
      print(loop)
      sys.exit(0)
  loop = loop + 1

Submission status: Wrong Answer

Solution code:
import random
S1 = random.randint(0,1)
S2 = random.randint(0,1)
S3 = random.randint(0,1)
print(str(S1 + S2 +S3))

Submission status: Wrong Answer

Solution code:
a=list(input())
b=0
for i in range(3):
	if a[i]==0:
		b=b+0
	else :
		b=b+1
print(b)

Submission status: Wrong Answer

Solution code:

s=int(input())


if s%3==0:
    if s==3:
       print(3)
    else:
       print(0)
elif s%3==1:
  print(1)
else:
  print(2)

Submission status: Wrong Answer

Solution code:
s = input()

print(s.count("0"))

Submission status: Wrong Answer

Solution code:
s = input()

cnt = 0;

for temp in s:
    if temp == "1":
        cnt += 1
    print (cnt)

Submission status: Wrong Answer

Solution code:
import sys

def main():
    N = int(input())
    A = list(map(int, 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

Submission status: Wrong Answer

Solution code:
A = input()
s = 0
for i in range(0,2):
  if A[i]=="1":
    s = s +1
print(s)

Submission status: Wrong Answer

Solution code:
A = input()
s = 0
for i in range(0,2):
  if A[i] ==1:
    s = s + 1
print(s)

Submission status: Wrong Answer

Solution code:
li = input().split()

print(li.count("1"))

Submission status: Wrong Answer

Solution code:
li = input().split()
count = 0
for i in li:
    if i == "1":
        count += 1

print(count)

Submission status: Wrong Answer

Solution code:
s = input()

number = 0
if s[0] == 1:
  number += 1
if s[1] == 1:
  number += 1
if s[2] == 1:
  number += 1
print(number)

Submission status: Wrong Answer

Solution code:
s = input()

number = 0
for i in range(len(s)):
  if s[i] == 1:
    number += 1
print(number)

Submission status: Wrong Answer

Solution code:
s = input()

number = 0
for i in range(3):
  if s[i] == 1:
    number += 1
print(number)

Submission status: Wrong Answer

Solution code:
s = input()

number = 0
for i in range(len(s)):
  if s[i] == 1:
    number += 1
print(number)

Submission status: Wrong Answer

Solution code:
N = input()
s = 0
for i in range(0,2):
  if N[i] == 1:
    s = s + 1
print(s)

Submission status: Wrong Answer

Solution code:
li = input().split() #li = ['1','2','3','4']
ans = li.count('1')
print(ans)

Submission status: Wrong Answer

Solution code:
s=input()
c=0
for i in range(0,3):
  if s[i]==1:
    c+=1
    
print(c)

Submission status: Wrong Answer

Solution code:
s=input()
c=1
for i in range(0,3):
  if s[i]==1:
    c+=1
    
print(c)

Submission status: Wrong Answer

Solution code:
a = int(input())
ans = a%10 + int(a/10)%10 + int(int(a/10))%10
print(ans)

Submission status: Wrong Answer

Solution code:

s = str('101')

s_tuple = s[0:1],s[1:2],s[2:3]

i = 0

for sb in s_tuple:
  if sb == '1':
    i = i + 1

print(i)

Submission status: Wrong Answer

Solution code:
nums = [int(i) for i in input().split()]
ans = 0
while True:
    if [i for i in nums if i % 2 == 1]:
        break
    nums = [i//2 for i in nums]
    ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
list = list(input())
print(list.count(1))

Submission status: Wrong Answer

Solution code:
A=list(map(int,input().split()))
count=0
while all([a%2==0 for a in A]):
    A = [a/2 for a in A]
    count+=1
print(count)

Submission status: Wrong Answer

Solution code:
list=list(map(int,input().split()))
a=list.count(1)

print(a)

Submission status: Wrong Answer

Solution code:
S=input().split()
print(S.count("1"))

Submission status: Wrong Answer

Solution code:
S=list(input().split())
print(S.count("1"))

Submission status: Wrong Answer

Solution code:
s = list(input())
cnt = 0
if s[0] == 1:
  cnt +=1
if s[1] == 1:
  cnt +=1
if s[2] == 1:
  cnt +=1
print(cnt)

Submission status: Wrong Answer

Solution code:
print int(input())%9

Submission status: Wrong Answer

Solution code:
print('数字を連続で入力')
s1,s2,s3 = map(int, input())

while s1<0 or s1>1 or s2<0 or s2>1 or s3<0 or s3>1:
    print('数字を連続で再入力')
    s1,s2,s3 = map(int, input())

ans = s1+s2+s3
print("{}".format(ans))

Submission status: Wrong Answer

Solution code:
a = list(input())
a.count('1')

Submission status: Wrong Answer

Solution code:
number = input()
count = 0

for n in number:
    if n == 1:
      count += 1

print(count)

Submission status: Wrong Answer

Solution code:
import numpy as np

A = list(map(int,input().split()))
count = 0

while all(a % 2 == 0 for a in A):
  A = [a/2 for a in A]
  count += 1
  
print(count)

Submission status: Wrong Answer

Solution code:
s = input()
print(sum([1 for i in s if s == '1']))

Submission status: Wrong Answer

Solution code:
a = input()
count = 0
for i in a:
  if i == 1:
    count += 1
print(count)

Submission status: Wrong Answer

Solution code:
input_chr = input()
# 文字列を一文字ずつ配列に格納する
input_array = list(input_chr)
num = 0

for i in range(len(input_array)):
	num += 1

print(num)

Submission status: Wrong Answer

Solution code:
import random

s1 = random.randint(0,1)
s2 = random.randint(0,1)
s3 = random.randint(0,1)
masu_list = (str(s1), str(s2), str(s3))

print(masu_list.count('1'))

Submission status: Wrong Answer

Solution code:
import random

s1 = random.randint(0,1)
s2 = random.randint(0,1)
s3 = random.randint(0,1)
masu_list = (s1, s2, s3)

print(masu_list.count(1))

Submission status: Wrong Answer

Solution code:
from sys import stdin
[x for x in list(stdin.readline())]

Submission status: Wrong Answer

Solution code:
from sys import stdin
list(stdin.readline())

Submission status: Wrong Answer

Solution code:
from sys import stdin

list(stdin.readline())

[int(x) for x in list(stdin.readline())]

Submission status: Wrong Answer

Solution code:
from sys import stdin

Submission status: Wrong Answer

Solution code:
a = input()

cnt = 0

for c in a:
  cnt=cnt + 1
  
print(c)

Submission status: Wrong Answer

Solution code:
print(input().split().count("1"))

Submission status: Wrong Answer

Solution code:
n=int(input())
print(n%3)

Submission status: Wrong Answer

Solution code:
import random
a = input()
print(random.randint(0,3))

Submission status: Wrong Answer

Solution code:
a = input().count('1')

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
#単数値での入力，桁ごとで分解する．
s = input()
a = [int(c) for c in s]
#出力値を設定
count = 0
#
for i in range(1, 3):
  if a[i] == 1:
  	count = count + 1
    
print(count)

Submission status: Wrong Answer

Solution code:
a = input()
a.count("1")

Submission status: Wrong Answer

Solution code:
s = input()
count = 0

for i in range(3):
  if s[i] == 1:
    count += 1
    
print(count)

Submission status: Wrong Answer

Solution code:
s = input()
t = 0
for i in range(3):
    if s[i] == 1:
        t = t + 1
print(t)

Submission status: Wrong Answer

Solution code:
a = input()

counter = 0
if a[0] == 1:
  counter = counter + 1
if a[1] == 1:
  counter = counter + 1
if a[2] == 1:
  counter = counter + 1

print(counter)

Submission status: Wrong Answer

Solution code:
a,b,c = input()
count = 0

if a == 1:
  count += 1
if b == 1:
  count += 1
if c == 1:
  count += 1
  
print(str(count))

Submission status: Wrong Answer

Solution code:
S = input()
i = 0
C = 0
 
while i < 3:
  if S[i] == 1:
    C += 1
  i += 1
  
print(str(C))

Submission status: Wrong Answer

Solution code:
a = input()
c=0
for i in range(len(a)):
    if a[i] == 1:
        c = c + 1
print(c)

Submission status: Wrong Answer

Solution code:
s = input()
count = 0
for i in range(3):
    if s==1:
        count= count + 1

Submission status: Wrong Answer

Solution code:
a = input()
masu = list(a)

ans = 0
for i in range(len(masu)):
	if (masu[i] == 1):
		ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
import numpy as np
a = np.array([int(x) for x in input().split()])
count = 0
x = 0
 
while x == 0:
    if np.all(a%2 ==0):
        count+=1
        a = a/2
    else:
        break
 
 
print(count)

Submission status: Wrong Answer

Solution code:
l=input().split()
print(l.count('1'))

Submission status: Wrong Answer

Solution code:
a = str(input())
k = 0
for i in a:
    print(i)
    if i == ("0"):
        k += 0
    elif i == ("1"):
        k += 1
print(k)

Submission status: Wrong Answer

Solution code:
a = str(input())
count = 0
for i in a:
  if a == 0:
    count += 1
print(count)

Submission status: Wrong Answer

Solution code:
s=input()
counter=0
if s[0]==1:
    counter+=1
if s[1]==1:
    counter+=1
if s[2]==1:
    counter+=1
print(counter)

Submission status: Wrong Answer

Solution code:
seq=input()
c=0
for i in range(3):
  if seq[i]==1:
    c+=1
print(c)

Submission status: Wrong Answer

Solution code:
print([int(input())].count(1))

Submission status: Wrong Answer

Solution code:
s=list(map(int,input().split()))
print(s.count("1"))

Submission status: Wrong Answer

Solution code:
s = input()
 
x = 0


for i in range(len(s)):
  if s[i] == 1:
    x += 1
  
print(x)

Submission status: Wrong Answer

Solution code:
s = input()
c = 0

for i in range(len(s)):
  if s[1] == '1':
    c += 1
print(c)

Submission status: Wrong Answer

Solution code:
S = input()
count = 0
for s in S:
  if s == "0":
    count += 1
print(count)

Submission status: Wrong Answer

Solution code:
S = list(map(int,input().split()))
count = 0
for s in S:
  if s == 0:
    count += 1
print(count)

Submission status: Wrong Answer

Solution code:
a = input()

print(a.count == "1")

Submission status: Wrong Answer

Solution code:
def shift_only(N,A):
    tmp = []
    counter = 0
    while True:
        flag = True
        # 全て偶数かを確認
        for num in A:
            if num%2 != 0:
                flag = False
        if flag == False:
            break
        A = [i/2 for i in A]
        counter +=1
    return counter

Submission status: Wrong Answer

Solution code:
def shift_only(n,array):
    tmp = []
    counter = 0
    while True:
        flag = True
        # 全て偶数かを確認
        for num in array:
            if num%2 != 0:
                flag = False
        if flag == False:
            break
        array = [i/2 for i in array]
        counter +=1
    return counter

Submission status: Wrong Answer

Solution code:
N=list(input())
N.count('1')

Submission status: Wrong Answer

Solution code:
s = input().split()
s.count(1)

Submission status: Wrong Answer

Solution code:
s = input().split()
print(s.count("1"))

Submission status: Wrong Answer

Solution code:
s = input().split()
s.count("1")

Submission status: Wrong Answer

Solution code:
s = list(map(int, input().split()))
s.count("1")

Submission status: Wrong Answer

Solution code:
s = list(map(int, input().split()))
n = s.count("1")
print(n)

Submission status: Wrong Answer

Solution code:
s = input().split()
n = s.count("1")
print(n)

Submission status: Wrong Answer

Solution code:
number = input()
sum = 0

for i in range(3):
  if number[i] == '1':
    sum =+ 1
print(sum)

Submission status: Wrong Answer

Solution code:
N=int(input())
a=0

for i in range(3)[:-1]:
  if N>=10**i:
    N-=10**i
    a+=1
print(a)

Submission status: Wrong Answer

Solution code:
s = input()
s.count('1')
print('s')

Submission status: Wrong Answer

Solution code:
s = input()
counter = 0
if(s[0]=="1"):
    counter += 1
if(s[1]=="1"):
    counter += 1
if(s[2]=="1"):
    counter += 1

Submission status: Wrong Answer

Solution code:
s = input()
counter = 0
if(s[0]=="1"):
    ++counter
if(s[1]=="1"):
    ++counter
if(s[2]=="1"):
    ++counter

Submission status: Wrong Answer

Solution code:
a=list(input().split())
print(a.count('1'))

Submission status: Wrong Answer

Solution code:
arr = [int(i) for i in input().rstrip().split(' ')]
print(sum(arr))

Submission status: Wrong Answer

Solution code:
a = list(input())

cnt = 0
for b in a:
  if b == 1:
    cnt+=1
    
print(cnt)

Submission status: Wrong Answer

Solution code:
S = list(input().split())
S = list(map(int, S))
print(sum(S))

Submission status: Wrong Answer

Solution code:
s=list(input())
result=0
for i in s:
  if i=='0':
    result+=1
print(result)

Submission status: Wrong Answer

Solution code:
s = input()
print('1'.count(s))

Submission status: Wrong Answer

Solution code:
s = int(input())

a = 0

if s >= 100:
  a + 1

if s -100 >= 10:
  a + 1

if s -110 >= 1:
  a + 1
  
print(a)

Submission status: Wrong Answer

Solution code:
a = input()
b = int(a)

count = 0
for i in range(len(a)-1):
    ichi = b%10
    if ichi == 1:
        count+=1
    
    b /= 10

print(count)

Submission status: Wrong Answer

Solution code:
a = input()
b = int(a)

count = 0
for i in range(len(a)-1):
    ichi = b/10
    if ichi == 1:
        count+=1
    
    b %= 10

print(count)

Submission status: Wrong Answer

Solution code:
a = input()
b = int(a)

count = 0
for i in range(len(a)-1):
    ichi = b%10
    if ichi == 1:
        count+=1
    
    b %= 10

print(count)

Submission status: Wrong Answer

Solution code:
a=list(input())
print(a)
N=0

for i in a:
    if int(i)==1:
        N+=1
        
print(N)

Submission status: Wrong Answer

Solution code:
print(int(input())%3)

Submission status: Wrong Answer

Solution code:
print(int(input())%2)

Submission status: Wrong Answer

Solution code:
evens = [6,4,10,4]
itr = 0
flg = True
while flg:
  evens = list(map(lambda x: (x/2), evens))
  is_evens = list(map(lambda x: x.is_integer(), evens))
  if not all(is_evens):
    flg = False
    break
  itr+=1
print(itr)

Submission status: Wrong Answer

Solution code:
print(sum(map(int,input().split())))

Submission status: Wrong Answer

Solution code:
[ s1, s2, s3 ] = str( input() )
print( s1 + s2 + s3 )

Submission status: Wrong Answer

Solution code:
sample=input()
one_count=0
s=0
for i in sample:
  if sample[s] == "1":
    one_count+=1
    s+=1
  else:
    s+=1  
    
print("1が",one_count,"個含まれています")

Submission status: Wrong Answer

Solution code:
s = list(input())
print(s)
print(s.count("1"))

Submission status: Wrong Answer

Solution code:
n = input().split()
ans = n.count('1')
print(ans)

Submission status: Wrong Answer

Solution code:
N = input()
N.count("1")

Submission status: Wrong Answer

Solution code:
S = input()
S.count("1")

Submission status: Wrong Answer

Solution code:
s=(int(x) for x in input().split())
count=0

for i in s:
	if i==1:
		count+=1

print(count)

Submission status: Wrong Answer

Solution code:
s = input()
s.count('1')
print(s)

Submission status: Wrong Answer

Solution code:
int(input().count('1'))

Submission status: Wrong Answer

Solution code:
s = list(input().split())
print(s.count("1"))

Submission status: Wrong Answer

Solution code:
s = list(map(int, input().split()))
print(s.count(1))

Submission status: Wrong Answer

Solution code:
l=map(int,input().split())
print(sum(l))

Submission status: Wrong Answer

Solution code:
a = list(input())
count = 0
for i in range(3):
  if a[i] == "1":
    count += 1

Submission status: Wrong Answer

Solution code:
#n = int(input())
#n,k = map(int,input().split())
#x = list(map(int,input().split()))

n = list(input())

cnt =0
for i in range(3):
    if n[i]==1:
        cnt += 1

print(cnt)

Submission status: Wrong Answer

Solution code:
input = input()
count = 0

for i in range(len(input)):
  if input[i] == 1:
    count += 1
 
print(count)

Submission status: Wrong Answer

Solution code:
num = input()
cnt = 0
for i in num:
    if i == "1":
        cnt += 0
print(cnt)

Submission status: Wrong Answer

Solution code:
s =   input() 
print(s)
s1,s2,s3 = int(s[0]),int(s[1]),int(s[2])

print(s1+s2+s3)

Submission status: Wrong Answer

Solution code:
c=list(map(int,input().split()))
print(sum(c))

Submission status: Wrong Answer

Solution code:
S=list(map(int,input().split(" ")))
print(sum(S))

Submission status: Wrong Answer

Solution code:
a = input().split()
print(a.count('1'))

Submission status: Wrong Answer

Solution code:
l = [x for x in input()]
ans = 1
if l[0] == '1':
  ans += 1
  if l[1] == '1':
    ans += 1
    if l[2] == '1':
      ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
arr =  [int(i) for i in input().split()] 

count = 0
while(True):
    for i, j in enumerate(arr):
        if j % 2 == 0:
            arr[i] = j / 2
            if i == 2:
                count += 1
        else:
            exit()
        

print(count)

Submission status: Wrong Answer

Solution code:
s = input().split()
ans = len(s)
print(ans)

Submission status: Wrong Answer

Solution code:
s = input()
ans = 0

for i in range(len(s)):
  if i == '1':
    ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
a = list(map(int, input().split()))

c = 0

while True:
  f = False
  for i in a:
    if i % 2 == 1:
      f = True
  if f == True:
    break

  for index, i in enumerate(a):
    a[index] /= 2

  c += 1

print(c)

Submission status: Wrong Answer

Solution code:
def how_many(n):
  ans = 0
  while n % 2 == 0:
    n /= 2
    ans += 1
  return ans

a = list(map(int, input().split()))
ans = min(map(how_many, a))