diff --git a/Hydro/d/ccf/CSPJ2019A/CSPJ2019A.cpp b/Hydro/d/ccf/CSPJ2019A/CSPJ2019A.cpp new file mode 100644 index 00000000..84f6f3ab --- /dev/null +++ b/Hydro/d/ccf/CSPJ2019A/CSPJ2019A.cpp @@ -0,0 +1,15 @@ +#include + +using namespace std; + +int ans; +string s; + +int main() { + cin >> s; + for (auto c : s) { + ans += c == '1'; + } + cout << ans << endl; + return 0; +}