标签:include sam problem names input col 分析 des 数据
#include<iostream> using namespace std; int main() { int n; int a[33],b[33]; while(cin>>n) { a[1]=1;a[2]=1; for(int i=1;i<=n;i++) { if(i>1) cout<<"1 "; for(int j=2;j<i;j++) b[j]=a[j-1]+a[j]; for(int k=2;k<i;k++) { a[k]=b[k]; cout<<a[k]<<" "; } a[i]=1; cout<<"1"; cout<<endl; } cout<<endl; } }
标签:include sam problem names input col 分析 des 数据
原文地址:http://www.cnblogs.com/tenjl-exv/p/8011055.html