SHARE
TWEET

Untitled

a guest Oct 22nd, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. int
  3. main ()
  4. {
  5.   int a[N];
  6.   int i, j, min = 10001;
  7.  
  8.   for (i = 0; i < N; i++)
  9.     {
  10.       cin >> a[i];
  11.     }
  12.  
  13.   for (i = 0; i < N; i++)
  14.     {
  15.       if (a[i] / 100 >= 1 and a[i] % 4 == 0 and a[i] < min)
  16.     {
  17.       min = a[i];
  18.     }
  19.     }
  20.   if (min == 10001)
  21.     {
  22.       cout << "ne naideno";
  23.     }
  24.   else
  25.     cout << min;
  26.  
  27. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top