| 记录编号 | 585807 | 评测结果 | AAAAAAAAAAAAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 3285.[CSP 2019J]数字游戏 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.000 s | ||
| 提交时间 | 2023-12-25 20:52:35 | 内存使用 | 0.00 MiB | ||
#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ULL;
char si[1001];
int peach;
  
 
int main(){
    
    freopen("csp2019pj_number.in","r",stdin);
    freopen("csp2019pj_number.out","w",stdout);
    
    cin>>si;
    for(int i=0;i<8;i++)
        if(si[i]=='1')
            peach++;
            
    
    
            
        
        
    
    
    
        
    
    
    cout<<peach;
    
    
    return 0;
}