Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
5478 | 黄祖耀 | 数字游戏(number) | C++ | Wrong Answer | 0 | 0 MS | 256 KB | 171 | 2020-08-05 06:22:39 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; char a[9]; for(int i=1;i<=8;i++){ cin>>a[i]; if(a[i]=='1') n++; } cout<<n; return 0; }