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