#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int T,t0 = 0;
int N;
cin >> T;
if((T >= 1) && (T <= 100))
{
while(t0 < T)
{
cin >> N;
if((N >= 1) && (N <= 100))
{
cout << ((pow(N,3) + 5 * N) / 6 + 1);
cout << endl;
}
t0 = t0 + 1;
}
}
return 0;
}
csu1284
最新推荐文章于 2024-05-25 23:32:01 发布