#include<cstdio> using namespace std; int main () { int t; long long n; scanf("%d",&t); for(int i=1;i<=t;i++){ scanf("%lld",&n); if(n==1) { printf("1"); continue; } printf("%lld\n",(long long)n*(n-1)); } return 0; }
蒟蒻求改