tj
2025-09-08 12:16:43
发布于:福建
0阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
string str;
long long ans = 0;
int main( ) {
getline(cin , str);
for (auto c : str) {
if (c == '1') {
ans++;
}
}
cout << ans << endl;
return 0;
}
这里空空如也
有帮助,赞一个