Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77789 sh25_wuyy 求一个数的位数 C++ 通过 0 MS 240 KB 158 2025-12-26 14:48:48

Tests(1/1):


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


测评信息: