Untitled

 avatar
user_5811307
plain_text
10 months ago
353 B
1
Indexable
Never
#include <iostream>
using namespace std;

int count(int a)
{
    int i=0;
    while (a != 0)
    {
        i++;
        a /=10;
    }
    return i;
}



int main()
{
    int b, max=0;
    cin >> b;
    for (int i=0; i < b; i++)
    {
        int a;cin >> a;
        int num =count(a);
        if (max < num) max =count(a);
    }
    cout <<max<< endl;
}
Leave a Comment