Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
164747 胡富航 15几个数字组成 C++ Accepted 1 MS 276 KB 202 2026-11-07 13:55:37

Tests(10/10):


Code:

#include<iostream> using namespace std; int main() { int n; cin>>n; int cnt=0; if(n==0) { cout<<1; return 0; } while(n!=0) { cnt++; n/=10; } cout<<cnt; return 0; }