OJ-Problems-Source/HDOJ/2050_autoAC.cpp

14 lines
191 B
C++
Raw Normal View History

#include <iostream>
using namespace std;
int main()
{
int n, m;
cin >>n;
while(n--)
{
cin >>m;
cout <<2*m*m - m + 1 <<endl;
}
return 0;
}