0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-27 14:36:27 +00:00

CSPJ2019A. 数字游戏

https://hydro.ac/d/ccf/record/615816122a2aefdda01dcfe9
This commit is contained in:
Baoshuo Ren 2021-10-02 16:20:15 +08:00 committed by Baoshuo Ren
parent 803bd3a891
commit ad44e32e09
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

View File

@ -0,0 +1,15 @@
#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;
}