Advertisement
rengetsu

Codeforces_432A

Jul 24th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. // Codeforces 432A
  2.  
  3. #include <iostream>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     int n, k, rez = 0;
  10.     cin >> n >> k;
  11.     int nn[n];
  12.     for( int i = 0; i < n; i++ )
  13.     {
  14.         cin >> nn[i];
  15.         if( nn[i] + k <= 5){rez++;}
  16.     }
  17.     cout << rez/3;
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement