Run ID:114376

提交时间:2025-03-22 11:58:54

#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int count = 0; // for (int i = 0; n != 0; i++) { // count++; // n = n / 10; // } while (n != 0) { count++; n = n / 10; } cout << count; return 0; }