SHARE
TWEET

19.11.2019-Pb5

Pop_Flaviu Nov 19th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # include <iostream>
  2. # include <cstring>
  3. # include <climits>
  4. using namespace std;
  5. int main ()
  6. {
  7.     int maxim,i,n,a;
  8.     maxim=-1;
  9.     char x[100];
  10.     cin >>n;
  11.     for (i=1;i<=n;i++)
  12.     {
  13.         cin >>x;
  14.         a=strlen(x);
  15.         if (a>maxim)
  16.             {
  17.                 maxim=a;
  18.             }
  19.     }
  20.     cout <<maxim;
  21.     return 0;
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top