fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define int long long
  4. void sol(){
  5. int n;
  6. cin >> n;
  7. n /= 2;
  8. int l = n / 2;
  9. int r = n - l;
  10. cout << l * r << endl;
  11. }
  12. signed main(){
  13. ios_base::sync_with_stdio(false);
  14. cin.tie(NULL);
  15. cout.tie(NULL);
  16. int t = 1;
  17. cin >> t;
  18. while(t--){
  19. sol();
  20. }
  21. return 0;
  22. }
Success #stdin #stdout 0.01s 5300KB
stdin
Standard input is empty
stdout
0