标签:include row inf bsp mamicode ssi 输入 pre frame
2
1
2
1
3
#include <iostream> using namespace std; int f(int n){ if(n==0) return 1; else return f(n-1)+2*(n-1); } int main(){ int n,*p,i; scanf("%d",&n); p=new int[n]; for(i=0;i<n;i++){ cin>>p[i]; } for(i=0;i<n;i++){ cout<<f(p[i])<<endl; } return 0; }
标签:include row inf bsp mamicode ssi 输入 pre frame
原文地址:https://www.cnblogs.com/PerZhu/p/11588280.html