标签:
http://acm.hdu.edu.cn/showproblem.php?pid=2050
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 10816 Accepted Submission(s): 7556

#include<iostream>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int n;
cin>>n;
cout<<2*n*n-n+1<<endl;
}
return 0;
}
标签:
原文地址:http://www.cnblogs.com/biong-blog/p/4421600.html