2 1 2
2 7
#include<iostream> #include<cstring> using namespace std; int main() { int n; cin>>n; while(n--) { int m; cin>>m; cout<<2*m*m-m+1<<endl; } return 0; }
hdu 2050 折线分割平面 递推,布布扣,bubuko.com
原文:http://blog.csdn.net/hyccfy/article/details/38095313