fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.  
  8. long long t , n;
  9.  
  10. cin >> t;
  11.  
  12. while(t--){
  13.  
  14. cin >> n;
  15.  
  16. long long len = n / 4;
  17. long long width = len + (n % 4) / 2;
  18. cout << len * width << "\n";
  19. }
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0s 3472KB
stdin
3
6
9
11
stdout
2
4
6