| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 162505 | 李泽曦 | 15几个数字组成 | C++ | Accepted | 1 MS | 272 KB | 404 | 2026-10-17 16:54:58 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,c=0; cin>>n; if(n==0) c=1; if(n<0) n=-n; while(n!=0){ c++; n/=10; } cout<<c; return 0; }