- 【例21.2】 判断整数位数
h
- 2025-1-14 15:29:37 @
#include<bits/stdc++.h>
using namespace std;
int n,sum=0;
int main(){
cin>>n;
while(n){
n/=10;
sum++;
}
cout<<sum;
return 0;
}
0 comments
No comments so far...
Information
- ID
- 27
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 5
- Tags
- # Submissions
- 180
- Accepted
- 76
- Uploaded By