Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75599 sh25_zhuwy 求一个数的位数 C++ 解答错误 0 MS 244 KB 187 2025-12-08 11:37:10

Tests(0/1):


#include<bits/stdc++.h> using namespace std; int main() { int n,sum=0; cin>>n; while(n) { if(n%10==1) { sum++; } n=n/10; } cout<<sum; return 0; }


测评信息: