为什么爆0啊
查看原帖
为什么爆0啊
942520
xy_303楼主2024/9/12 13:35
#include<bits/stdc++.h>
using namespace std;
int main()
{
    char a,jsq=0;
    for(int i=0;i<8;i++){
      cin>>a;
      if(a=='1')
      {
          jsq++;
      }
    }
    cout<<jsq;
    return 0;
}

阿米诺斯

2024/9/12 13:35
加载中...