fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class A
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. Scanner in = new Scanner(System.in);
  10. int n, number, count = 0;
  11. n = in.nextInt();
  12. for (int i = 0;i < n; i++){
  13. number = in.nextInt();
  14. if ((number / 2) % 2 == 1) count++;
  15. }
  16. System.out.print(count);
  17. in.close();
  18. return;
  19. }
  20. }
Success #stdin #stdout 0.06s 2184192KB
stdin
5
1
2
3
7
4
stdout
3