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 = 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] = i / 2

  c += 1

print(c)

Submission status: Wrong Answer

Solution code:
x = input()

counter = 0
for i in x:
    if x == '1':
        counter += 1

print(counter)

Submission status: Wrong Answer

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

print(sum(A))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
i = input()
a = [int(i) for i in str(i)]

print(a)
s = a[0]+a[1]+a[2]
print(s)

Submission status: Wrong Answer

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

if s[0] == "1":
    count=count+1
if s[1] == "1":
    count=count+1
if s[2] == "1":
    count=count+1

print(count)

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 = list(map(int,input().split()))
print(str(s.count(1)))

Submission status: Wrong Answer

Solution code:
#input
input = int(input())
#b = int(input())
s = [0,0,0]
s[0] = int(input/100)
s[1] = int(input/10 - 10)
s[2] = int(input%10)

count=0
a=0
for i in range(3):
  #print(str(i) + '\n')
  count += s[i]

print(count)

Submission status: Wrong Answer

Solution code:
#input
input = int(input())
#b = int(input())
s = [0,0,0]
s[0] = int(input/100)
s[1] = int(input/10)
s[2] = int(input%10)

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

print(count)

Submission status: Wrong Answer

Solution code:
ls = list(input().split())
count = 0
for l in ls:
  if l == '1':
    count += 1
print(count)

Submission status: Wrong Answer

Solution code:
ls = list(input().split())
count = 0
for l in ls:
  if l == 1:
    count += 1
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input()
counter=0

for n in range(3):
  if int(s[0])==1:
    counter+=1

print(counter)

Submission status: Wrong Answer

Solution code:
s = int(input())
count = 0
if int(s / 100) == 1:
    count += 1
if (s % 100) / 10 == 1:
    count += 1
if s % 10 == 1:
    count += 1

print(count)

Submission status: Wrong Answer

Solution code:
101

Submission status: Wrong Answer

Solution code:
a = str(input())

a = list(a)


for i in range(len(a)):
    a[i] = int(a[i])

sum(a)

Submission status: Wrong Answer

Solution code:
a=input()
c=0
if a[0]==1:
  c+=1
if a[1]==1:
  c+=1
if a[2]==1:
  c+=1
print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A=list(map(int,input().split()))
flag=0
count=0
ans=[]
for a in A:
  if a%2==0:
    count=a/2
  else:
    count=(a-1)/2
    flag=1
    ans.append(count)
    if flag==1:
      print(int(min(ans)))
    else:
      print(0)

Submission status: Wrong Answer

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

p=0
ans=[]
for i in A:
  while i%2==1:
    p=p+1    
  ans.append(p)
print(min(ans))

Submission status: Wrong Answer

Solution code:
a,b,c = input()
d = 0
if a == 1:
    d += 1
if b == 1:
    d += 1
if c == 1:
    d += 1
print(d)

Submission status: Wrong Answer

Solution code:
s = input()
alfa = list(s)
count = 0

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
s = input()
alfa = s
count = 0

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
def resolve():
    s = input()
    alfa = s
    count = 0

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
l = input()
count = 0
for n in range(len(l)):
    print(l[n])
    if l[n] == "1":
        count+=1
print(count)

Submission status: Wrong Answer

Solution code:
a = input()
b = a.find('1')
print(b)

Submission status: Wrong Answer

Solution code:
a= input()
count=0

if (a[0])==1:
  count+=1
if (a[1])==1:
  count+=1
if (a[2])==1:
  count+=1
  
print(count)

Submission status: Wrong Answer

Solution code:
a= input()
count=0

if a[0]==1:
  count+=1
if a[1]==1:
  count+=1
if a[2]==1:
  count+=1
print(count)

Submission status: Wrong Answer

Solution code:
n=int(input())
count = 0
if n == 0:
  print(0)
elif n == 1:
  print(1)
elif n >= 10 and n <100:
  count = count + 1
  n = n%10
  if n == 1:
    count = count + 1
  print(count)
elif n >= 100:
  count = count + 1
  n = n%100
  if n > 10:
    count = count + 1
    n = n%10
    if n == 1:
      count = count + 1
  else :
    if n ==1:
      count = count + 1
  print(count)

Submission status: Wrong Answer

Solution code:
n=int(input())
count = 0
if n == 0:
  print(0)
elif n == 1:
  print(1)
elif n >= 10 and n <100:
  count = count + 1
  n = n%10
  if n == 1:
    count = count + 1
  print(count)
elif n >= 100:
  count = count + 1
  n = n%100
  if n > 10:
    count = count + 1
    n = n%10
    if n == 1:
      count = count + 1
  print(count)

Submission status: Wrong Answer

Solution code:
n=int(input())
count = 0
if n == 0:
  print(0)
elif n == 1:
  print(1)
elif n > 10 and n <100:
  count = count + 1
  n = n%10
  if n == 1:
    count = count + 1
  print(count)
elif n > 100:
  count = count + 1
  n = n%100
  if n > 10:
    count = count + 1
    n = n%10
    if n == 1:
      count = count + 1
  print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = int(input())
cnt = 0
  
while a != 0:
  if a%10 == 1:
  	cnt += 1
  a = a/10
  
print(cnt)

Submission status: Wrong Answer

Solution code:
a = int(input())
cnt = 0
  
while a != 0:
  print(a)
  if a%10 == 1:
  	cnt += 1
  a = int(a/10)
  
print(cnt)

Submission status: Wrong Answer

Solution code:
a = int(input())
cnt = 0
  
if a%10 == 1:
  cnt += 1
  a = int(a/10)
if a%10 == 1:
  cnt += 1
  a = int(a/10)
if a%10 == 1:
  cnt += 1
  a = int(a/10)
  
print(cnt)

Submission status: Wrong Answer

Solution code:
a = sum(list(map(int, input().split())))
print(a%4)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
sum = input()
cnt = 0
  
if sum[0] == '1' :
  cnt =+ 1
 
if sum[1] == '1':
  cnt =+ 1
 
if sum[2] == '1':
  cnt =+ 1

print(cnt)

Submission status: Wrong Answer

Solution code:
src = input()

sum = 0
if src[0] == '1':
    sum += 1
if src[1] == '1':
    sum += 1
if src[2] == '1':
    sum += 1

    print(sum)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input().split()
count = 0
for i in S:
  count+=1
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
a=stdin.readline().rstrip()
x=a.count("1")
print("x")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()

count = 0
for i in a.split():
  if i == '1':
    count += 1   

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()

count = 0
for i in a.split():
  if i == 1:
    count += 1

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
trout = input().rstrip().lstrip()
num_list = []
for i in range(len(trout)):
  num_list.append(int(trout[i]))

Submission status: Wrong Answer

Solution code:
trout = input().rstrip()
count_zero = trout.count('0')

Submission status: Wrong Answer

Solution code:
n = input()
ans = 0
for i in range(3):
    if n == '1':
        ans += 1

print(ans)

Submission status: Wrong Answer

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

while True:
	for i in a:
		if i%2 != 0:
			flg = 1
	if flg == 0:
		a = list(map(lambda x: int(x/2), a))
		count += 1
	else:
		break
         
print(count)

Submission status: Wrong Answer

Solution code:
s=list(map(int,input().split()))	
n=sum(x==1 for x in s)
print(n)

Submission status: Wrong Answer

Solution code:
a = input()

b = a[0:0]
c = a[1:0]
d = a[2:0]

ball = 0

if(b == 1):
  ball += 1

if(c == 1):
  ball += 1

if(d == 1):
  ball += 1 
print(1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(count)

Submission status: Wrong Answer

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

print(count)

Submission status: Wrong Answer

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

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = list(map(int, input().split()))
count = 0
for i in a:
    if i ==1:
        count +=1
    else :
        continue
print(count)

Submission status: Wrong Answer

Solution code:
str = input()
print(str)
counter = 0

if str[0] == '1':
  counter+=1
if str[1] == '1':
  counter+=1
if str[2] == '1':
  counter+=1

print(counter)

Submission status: Wrong Answer

Solution code:
in1 = int(raw_input())
a = in1 // 100
b = (in1 - a * 100) // 10
c = in1 % 10

cnt = 0
if a == 1:
    cnt += 1
elif b == 1:
    cnt += 1
elif c == 1:
    cnt += 1

print cnt

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
data = [x for x in input().rstrip()]
print(data.count(1))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
count = 0
if N%100==1:
  count+=1
  N=N%100
if N%10==1:
  count+=1
  N=N%10
if N==1:
  count+=1;
print(count)

Submission status: Wrong Answer

Solution code:
N = int(input())
count = 0
if N%100==1:
  count+=1
  N=N%100
if N%10==1:
  count+=1
  N=N%10
if N==1:
  count+=1;
print(N)

Submission status: Wrong Answer

Solution code:
a=input()
print(len(a.split('0')))

Submission status: Wrong Answer

Solution code:
s=input()
A = 0
B = 0
C = 0

if s[0] == 1:
  	A = 1

if s[1] == 1:
  	B = 1

if s[2] == 1:
  	C = 1

print(A+B+C)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
if s[0] == 1:
  a = 1  
else:
  a = 0

if s[1] == 1:
  b = 1
else:
  b = 0

if s[2] == 1:
  c = 1
else:
  c = 0
  
print(a + b + c)

Submission status: Wrong Answer

Solution code:
s = "input()"
if s[0] == 1:
  a = 1  
else:
  a = 0

if s[1] == 1:
  b = 1
else:
  b = 0

if s[2] == 1:
  c = 1
else:
  c = 0
  
print(a + b + c)

Submission status: Wrong Answer

Solution code:
a,b,c=input()
print(a+b+c)

Submission status: Wrong Answer

Solution code:
[a] = map(str,input().split())
b = 0
if a[0] == 1:
    c = b + 1
else:
    c = b 
if a[1] == 1:
    d = c + 1
else:
    d = c
    
if a[2] == 1:
    e = d + 1
else:
    e = d
print(e)

Submission status: Wrong Answer

Solution code:
print(len([i == '1' for i in input()]))

Submission status: Wrong Answer

Solution code:
s_list = input()
sum = s_list[0] + s_list[1] + s_list[1]
print(sum)

Submission status: Wrong Answer

Solution code:
a  = input()
b = str(a)
c = 0
for n in b:
    print(n)
    if n == str(1):
        c += 1
print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    s = list(input())
    count = 0
    if(s[0] == '1'):
        count += 1
    if(s[0] == '1'):
        count += 1
    if(s[0] == '1'):
        count += 1
    
    print(count)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
n = input()
i = []
for x in range(int(n)):
    if x % 2 == 0:
        i.append(x)
print(len(i))

Submission status: Wrong Answer

Solution code:
s = input()
n= 0
for c in s:
  if s == '1':
  	c += 1
    
print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

count = 0
if n % 100 != 1:
    count += 1
    n = n % 100
else:
    pass

if int(n / 10) == 1:
    count += 1
    n = n % 10
else:
    pass

if n == 1:
    count += 1
else:
    pass

print(count)

Submission status: Wrong Answer

Solution code:
n = int(input())

count = 0
if n % 100 == 1:
    count += 1
    n = n % 100
if n % 10 == 1:
    count += 1
    n = n % 10
if n == 1:
    count += 1

print(count)

Submission status: Wrong Answer

Solution code:
a, b, c = input()
a + b + c

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    # line = str(input())
    line = '000'
    count = 0
    if line[0] == '1':
        count += 1
    if line[1] == '1':
        count += 1
    if line[2] == '1':
        count += 1
    print(count)

Submission status: Wrong Answer

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

#問題文
#すぬけ君は 1,2,3 の番号がついた 3 つのマスからなるマス目を持っています。 各マスには 0 か 1 が書かれており、マス i
# には si が書かれています。
#すぬけ君は 1 が書かれたマスにビー玉を置きます。 ビー玉が置かれるマスがいくつあるか求めてください。

#制約
#s1,s2,s3 は 1 あるいは 0

countup = 0
s = str(raw_input())
for count in s :
    if count == '1':
        print s
        countup += 1
    else:
        countup = countup

print countup

Submission status: Wrong Answer

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

#問題文
#すぬけ君は 1,2,3 の番号がついた 3 つのマスからなるマス目を持っています。 各マスには 0 か 1 が書かれており、マス i
# には si が書かれています。
#すぬけ君は 1 が書かれたマスにビー玉を置きます。 ビー玉が置かれるマスがいくつあるか求めてください。

#制約
#s1,s2,s3 は 1 あるいは 0

countup = 0
s = str(raw_input())
for count in s :
    if s == '1':
        countup += 1
    else:
        countup = countup

print countup

Submission status: Wrong Answer

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

#問題文
#すぬけ君は 1,2,3 の番号がついた 3 つのマスからなるマス目を持っています。 各マスには 0 か 1 が書かれており、マス i
# には si が書かれています。
#すぬけ君は 1 が書かれたマスにビー玉を置きます。 ビー玉が置かれるマスがいくつあるか求めてください。

#制約
#s1,s2,s3 は 1 あるいは 0

countup = 0
s = str(raw_input())
for count in s :
    if s == 1:
        countup += 1
    else:
        countup = countup

print countup

Submission status: Wrong Answer

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

#問題文
#すぬけ君は 1,2,3 の番号がついた 3 つのマスからなるマス目を持っています。 各マスには 0 か 1 が書かれており、マス i
# には si が書かれています。
#すぬけ君は 1 が書かれたマスにビー玉を置きます。 ビー玉が置かれるマスがいくつあるか求めてください。

#制約
#s1,s2,s3 は 1 あるいは 0

countup = 0
s = str(raw_input())
for count in s :
    if count == 1:
        countup += 1
    else:
        countup = countup

print countup

Submission status: Wrong Answer

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

#問題文
#すぬけ君は 1,2,3 の番号がついた 3 つのマスからなるマス目を持っています。 各マスには 0 か 1 が書かれており、マス i
# には si が書かれています。
#すぬけ君は 1 が書かれたマスにビー玉を置きます。 ビー玉が置かれるマスがいくつあるか求めてください。

#制約
#s1,s2,s3 は 1 あるいは 0

countup = 0
s = str(raw_input())
for count in s :
    if count == 1:
        countup += 1
    else:
        pass

print countup

Submission status: Wrong Answer

Solution code:
allnum = str(input())
x = 0
for i in range(2):
  if allnum[i] == "1":
    x = x+1
  else:
    x = x

print(x)

Submission status: Wrong Answer

Solution code:
data = list(map(lambda x:int(x),input().strip().split()))
print(sum(data))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c = map(int, input().format())
print("a + b + c")

Submission status: Wrong Answer

Solution code:
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    s = input()
    ans = 0
    for i in s:
        if i == '0':
            ans += 1
    
    print(ans)

solve()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
S = int(input())
count=0

if S//100==1:
    count +=1
if S//10==1:
    count +=1
if S%10==1:
    count +=1

print(count)

Submission status: Wrong Answer

Solution code:
a = str(input())
ans = 0

for i in range(2):
    if a[i] == "1":
        ans = ans + 1

print(ans)

Submission status: Wrong Answer

Solution code:
a = str(input())
ans = 0
if a[0] == 1:
    ans = ans + 1

if a[1] == 1:
    ans = ans + 1

if a[2] == 1:
    ans = ans + 1

print(ans)

Submission status: Wrong Answer

Solution code:
a = str(input())
ans = 0
if a[0] == 1:
    ans += 1

if a[1] == 1:
    ans += 1

if a[2] == 1:
    ans += 1

print(ans)

Submission status: Wrong Answer

Solution code:
a = str(input())
ans = 0
if a[0] == 0:
    ans += 1

if a[1] == 0:
    ans += 1

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

print(ans)

Submission status: Wrong Answer

Solution code:
sentence = input().split()
count = 0
for i in range(len(sentence)):
  if sentence[i] == 1:
    count+=1

print(count)

Submission status: Wrong Answer

Solution code:
s1,s2,s3 = map(int,input())
[s1,s2,s3].count(1)

Submission status: Wrong Answer

Solution code:
s1,s2,s3 = map(int,input())
s=[s1,s2,s3]
s.count(1)

Submission status: Wrong Answer

Solution code:
s = input(int())
sum = 0
for t in range(len(s)):
    if s[t]=="1":
        sum +=1
        print(sum)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()
cnt = 0

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

    print(cnt)

Submission status: Wrong Answer

Solution code:
a = list(input())
res = 0
for v in a:
  if v == 1:
    res +=1
print(res)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
str=list(input())
print(str)
s1=int(str[0])
s2=int(str[1])
s3=int(str[2])
print(s1+s2+s3)

Submission status: Wrong Answer

Solution code:
s = int(input())
i = 0
if(s//100==1):
    i =+ 1
    s = s - 100
if(s//10==1):
    i =+ 1
    s = s-10
if(s==1):
    i =+ 1
print(i)

Submission status: Wrong Answer

Solution code:
s = int(input())
i = 0
if(s%100==1):
    i =+ 1
    s = s - 100
if(s%10==1):
    i =+ 1
    s = s-10
if(s==1):
    i =+ 1
print(i)

Submission status: Wrong Answer

Solution code:
A = list(map(int, input().split()))
res = 0
for i in range(len(A)):
  res =res + A[i]
print(res)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(
  sum(
    a == 1 for a in map(int, input().split())
  )
)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
number = input('3桁の整数')
count = 0
for i in number:
    if i == '1':
        count += 1

print(count)
print('\n')

Submission status: Wrong Answer

Solution code:
number = input('3桁の整数')
count = 0
for i in number:
    if i == '1':
        count += 1

print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = int(input())
c = 0
if a > 100:
    c += 1
if a-100 > 9:
    c += 1
if a % 2 != 0:
    c += 1
print(c)

Submission status: Wrong Answer

Solution code:
sss = input()
masu = list(sss)
counter = 0
if(masu[0] == '1'):
    counter += 1
elif (masu[1] == '1'):
    counter += 1
elif (masu[2] == '1'):
    counter += 1
print(counter)

Submission status: Wrong Answer

Solution code:
sss = input()
masu = list(sss)
counter = 0
if(masu[0] == 1):
    counter += 1
elif (masu[1] == 1):
    counter += 1
elif (masu[2] == 1):
    counter += 1
print(counter)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = str(input())

s.count('1')

Submission status: Wrong Answer

Solution code:
a = list(input())

count = 0
for i in range(len(a)):
  if a[i] == 1:
    count += 1

print(count)

Submission status: Wrong Answer

Solution code:
a = input()

count = 0
for i in range(len(a)):
  if a[i] == 1:
    count += 1

print(count)

Submission status: Wrong Answer

Solution code:
L = input()
for i in range(len(L)):
    n = 0
    if int(L[i]) ==1:
        n += 1
print(n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=int(input())
s1=int(s/100)
s3=int(s%10)
s2=int(s-((s1*100)+(s3)))
lists=[s1,s2,s3]
print(lists.count(1))

Submission status: Wrong Answer

Solution code:
import math
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))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print (len([num for num in list(input()) if num == 1]))

Submission status: Wrong Answer

Solution code:
c=list(map(int, input().split()))
k = 0
for j in range(len(c)):
  if (c[j] == 1):
    k += 1
print(k)

Submission status: Wrong Answer

Solution code:
c=list(map(int, input().split()))
k = 0
for i in range(len(c)):
  if (c[i] == "1"):
    k += 1
print(k)

Submission status: Wrong Answer

Solution code:
a = input()
b = 0
if a[0] == 1:
    b = b+1
if a[1] == 1:
    b = b+1
if a[2] == 1:
    b = b+1
print(b)

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
s = str(input())
separated = list(s)
count = 0
for char in separated:
    print(char)
    if char == "1":
        count += 1
print(count)

Submission status: Wrong Answer

Solution code:
a=str(input())
b=0
for moji in a:
    print(moji)
    if moji=="1":
        b+=1

print(b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
li = input().split()
print(len([a for a in li if a == '1']))

Submission status: Wrong Answer

Solution code:
a = int(input())

print(bin(a).count('1'))

Submission status: Wrong Answer

Solution code:
s = input()
counter = 0

for i in range(0,3):
    if s[i] == '1':
        counter +=1

print("'1' が"+str(counter)+"個含まれています。")

Submission status: Wrong Answer

Solution code:
x = 0
for i in list(input("type number:")):
    if i == "1" :
        x += 1
print(x)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
count = 0
for s in input():
    count += 1

print(count)

Submission status: Wrong Answer

Solution code:
print input()%9

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# cording: UTF-8
master = int(input())
a = master % 100
b = (master - a * 100) % 10
c = (master - a * 100 + b * 10) % 1
print(a+b+c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

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

print(count)

Submission status: Wrong Answer

Solution code:
S=input()
S=list(S)
cnt=0
for i in S:
    if i =='1':
        cnt+=1

Submission status: Wrong Answer

Solution code:
#81a
s=input()
print(s[0]+s[1]+s[2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = str(input())
print(S.find("1"))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
l = input()
t = 0
for c in l:
    if c == '1': t+=1
print(c)

Submission status: Wrong Answer

Solution code:
A=int(input())

print(A/100+(A%100)/10+(A%100)%10)

Submission status: Wrong Answer

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

print(sum(A))

Submission status: Wrong Answer

Solution code:
input_list = [int(i) for i in input().split()]
print(input_list.count(1))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = list(map(int,input().split()))
cnt=0
ans=0
wh=1
while(wh==1):
    for j in range(len(A)):
        if A[j]%2==0:
            cnt+=1
            A[j]=A[j]/2
        else: wh=0
        if (j==len(A)-1 and cnt==len(A)):
            cnt=0
            ans+=1
print(A,ans)

Submission status: Wrong Answer

Solution code:
input = input()
num = 0

for i in range(3):
  if input[i] == 1:
    num += 1

print(i)

Submission status: Wrong Answer

Solution code:
input = input()
num = 0

for i in range(3):
  if (input[i] == "1"):
    num += 1

print(i)

Submission status: Wrong Answer

Solution code:
input = input()
num = 0

for i in range(3):
  if (input[i] == 1):
    num += 1

print(i)

Submission status: Wrong Answer

Solution code:
input = input()
num = 0

for i in range(2):
  if (input[i] == 1):
    num += 1

print(i)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = "000"
ss = s.split("1")
print(len(ss)-1)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
 
def main():
    input_char_list = list(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()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if s[0] == 1:
    count += 1
if s[1] == 1:
    count += 1
if s[2] == 1:
    count += 1

print(count)

Submission status: Wrong Answer

Solution code:
n=input()
a=[n[0],n[1],n[2]]
a.sort()
if a[0]==1:
    print(3)
elif a[1]==1:
    print(2)
elif a[2]==1:
    print(1)
else:
    print(0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
"""
https://beta.atcoder.jp/contests/abc081/tasks/abc081_a
 
"""
import sys
from sys import stdin
input = stdin.readline
 
 
def main(args):
    s = input().strip()
    print(s.count('1'))

Submission status: Wrong Answer

Solution code:

import sys
from sys import stdin
input = stdin.readline
 
 
def main(args):
    s = input().strip()
    print(s.count('1'))

Submission status: Wrong Answer

Solution code:
masu = list(input())
count = 0

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