Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
120540 | 万隽宇 | 15几个数字组成 | C++ | Accepted | 1 MS | 276 KB | 416 | 2025-05-29 19:12:56 |
#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,a=0; cin>>n; while(true){ n/=10; a++; if(n==0){ break; } } cout<<a; return 0; }