Alex_Fuleki21

siruri pb5

Nov 19th, 2019
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include<iostream>
  2. #include<cstring>
  3. using namespace std;
  4. char a[100];
  5. int main()
  6. {
  7. int n,maxim,i;
  8. cin>>n;
  9. for(i=1;i<=n;i++)
  10. {
  11. cin>>a;
  12. n=strlen(a)-1;
  13. if(n>maxim)
  14. {
  15. maxim=n;
  16. }
  17. }
  18. cout<<maxim;
  19. }
Add Comment
Please, Sign In to add comment