Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5393 匿名用户 数字游戏(number) C++ 通过 100 0 MS 252 KB 194 2020-08-01 21:33:41

Tests(20/20):


#include<bits/stdc++.h> using namespace std; int main(){ int m=0; char a[9]={0}; for(int i=1;i<=8;i++) cin>>a[i]; for(int i=1;i<=8;i++) if(a[i]=='1') m++; cout<<m; return 0; }


测评信息: