fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n, a, count = 0, x;
  6. cin >> n >> a;
  7. while (n) {
  8. cin >> x;
  9. if (x % 2 == 0 && x > a) {
  10. ++count;
  11. }
  12. --n;
  13. }
  14. cout << count;
  15. return 0;
  16. }
Success #stdin #stdout 0s 5284KB
stdin
5 10
6 4 8 7 1
stdout
Standard output is empty