1 条题解

  • 1
    @ 2025-2-11 11:29:09
    #include <bits/stdc++.h>
    using namespace std;
    int c;
    int main(){
    	string a;
    	cin>>a;
    	for(int i=0;i<a.size();i++){
    		if(a[i]=='1'){
    			c++;
    		}
    	}
    	cout<<c;
    	return 0; 
    }
    
    • 1

    信息

    ID
    88
    时间
    1000ms
    内存
    256MiB
    难度
    10
    标签
    递交数
    1
    已通过
    1
    上传者