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