Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include <iostream>
- # include <cstring>
- # include <climits>
- using namespace std;
- int main ()
- {
- int maxim,i,n,a;
- maxim=-1;
- char x[100];
- cin >>n;
- for (i=1;i<=n;i++)
- {
- cin >>x;
- a=strlen(x);
- if (a>maxim)
- {
- maxim=a;
- }
- }
- cout <<maxim;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement