mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-27 10:51:59 +00:00
16 lines
190 B
C++
16 lines
190 B
C++
|
#include <bits/stdc++.h>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
int ans;
|
||
|
string s;
|
||
|
|
||
|
int main() {
|
||
|
cin >> s;
|
||
|
for (auto c : s) {
|
||
|
ans += c == '1';
|
||
|
}
|
||
|
cout << ans << endl;
|
||
|
return 0;
|
||
|
}
|