fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n, number, count = 0;
  6. cin >> n;
  7. for (int i = 0; i < n; i++) {
  8. cin >> number;
  9. if ((number / 2) % 2 == 1) count++;
  10. }
  11. cout << count;
  12. return 0;
  13. }
Success #stdin #stdout 0s 4456KB
stdin
4
2
1
3
5
stdout
2