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