Untitled
unknown
plain_text
2 years ago
301 B
4
Indexable
#include <iostream> using namespace std; int countsOfdigitsMax(int n) { int count = 0; int a, max=0; cin >> n; for (int i = 0; i < n; i++) { cin >> a; while (a) { a /= 10; count++; } if (max > count) { max = count; } } cout << max; return count; }
Editor is loading...
Leave a Comment