AtCoder Beginner Contest 081
翻译中…
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 either1or0.
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
s_{1}s_{2}s_{3}
翻译中…
Output
翻译中…
Print the answer.
翻译中…
样例
Input #1
101
Output #1
2
- A marble will be placed on Square $1$ and $3$.
Input #2
000
Output #2
0
- No marble will be placed on any square.
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。