fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int t;
  5. scanf("%d", &t);
  6. while(t--){
  7. int x;
  8. scanf("%d", &x);
  9. if(x % 4 == 0){
  10. printf("%d\n", x/4);
  11. }
  12. else {
  13. printf("%d\n", (x/4)+1);
  14. }
  15. }
  16. return 0;
  17. }
Success #stdin #stdout 0s 5324KB
stdin
4
4
2
7
98
stdout
1
1
2
25