#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int sum = 0; //统计位数 while(n != 0) { sum++; n /= 10; //每分割一位数就统计位数+1 } cout << sum; return 0; }