mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
ddd34a4f1c
2000-2099
14 lines
191 B
C++
14 lines
191 B
C++
#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;
|
|
}
|