#include<bits/stdc++.h> using namespace std; int main() { int n,t=0; cin>>n; while(n) { n=n/10; t++; } if(t>=1) { cout<<t; }else{ cout<<1; } return 0; }
使用您的 众创得优编程 通用账户