0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-30 22:56:27 +00:00
OI-codes/Hydro/ccf/CSPJ2019A/CSPJ2019A.cpp

16 lines
190 B
C++
Raw Normal View History

#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;
}