| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133604 | 张暄浩 | 15几个数字组成 | C++ | Accepted | 2 MS | 272 KB | 457 | 2025-10-19 18:20:28 |
#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=0; int cnt=0; cin>>n; if(n<0) n = -n; else if(n==0) cnt = 1; while(n != 0){ ++cnt; n /= 10; } cout << cnt << endl; return 0; }