123456789101112131415161718192021222324 |
- #include<bits/stdc++.h>
- using namespace std;
- int Length(int n){
- int s=0;
- while(n>0){
- n=n/10;
- ++s;
- }
- return s;
- }
- int main(){
- int n;
- cin>>n;
- cout<<Length(n);
- return 0;
- }
- /**************************************************************
- Problem: 2263
- User: acm
- Language: C++
- Result: 正确
- Time:0 ms
- Memory:2016 kb
- ****************************************************************/
|