Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
164208 胡富航 15几个数字组成 C++ Accepted 1 MS 268 KB 246 2026-11-01 12:18:21

Tests(10/10):


Code:

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