Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
301 B
0
Indexable
Never
#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;
	
}
Leave a Comment