mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-28 12:31:59 +00:00
parent
803bd3a891
commit
ad44e32e09
15
Hydro/d/ccf/CSPJ2019A/CSPJ2019A.cpp
Normal file
15
Hydro/d/ccf/CSPJ2019A/CSPJ2019A.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user