Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
164751 冉骏杰 15几个数字组成 C++ Accepted 1 MS 276 KB 223 2026-11-07 14:02:17

Tests(10/10):


Code:

#include<iostream> using namespace std; long long a,c; int main() { cin>>a; if(a<=0){ a = -1* a; } if(a == 0){ cout<<1; return 0; } while(a!=0){ a=a/10; c++; } cout<<c; return 0 ; }