/* -*- coding: utf-8 -*- * * 2469.cc: No.2469 Umbrella Queries - yukicoder */ #include #include using namespace std; /* constant */ /* typedef */ typedef long long ll; /* global variables */ /* subroutines */ /* main */ int main() { int tn; scanf("%d", &tn); while (tn--) { int n; scanf("%d", &n); ll x = (n & 1) ? 0 : (ll)(n / 2 - 1) * n; printf("%lld\n", x); } return 0; }