| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 75390 | sh25_shenpy | 数1的个数 | C++ | Accepted | 0 MS | 248 KB | 244 | 2025-12-06 13:06:48 |
#include <bits/stdc++.h> using namespace std; int main() { int n,sum=0; cin>>n; for(int i=1;i<=n;++i) { int num=i; cin>>num; while(num){ if(num%10==1){ sum++; } num=num/10; } } cout<<sum; return 0; }