3 条题解

  • 0
    @ 2025-10-29 22:12:06
    #include <bits/stdc++.h>
    using namespace std;
    #define LL long long
    const int N=1e6+10;
    string s;
    int main(){
    	ios::sync_with_stdio(false);
    	cin.tie(0);cout.tie(0);
    	cin>>s;
    	int ans=0;
    	for(auto x:s) ans+=x-'0';
    	cout<<ans;
    	return 0;
    }
    

    信息

    ID
    19
    时间
    1000ms
    内存
    256MiB
    难度
    1
    标签
    (无)
    递交数
    303
    已通过
    233
    上传者