| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 4221 | 苏莉雯 | 数1的个数 | C++ | Compile Error | 0 | 0 MS | 0 KB | 247 | 2025-01-05 16:52:03 |
#include<bits/stdc++.h> using namespace std; int main() { int a,g,s,b,q; cin>>a; q=a/1000; b=a/100%10; s=a/10%10; g=a%10; for(int i;i<=a;i++) { b=a%10; a=a/10; if(b==1) { c++; } b==0; } cout<<c; }