| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
过了,我靠,是四个空格~~#include "stdio.h"
main()
{
int n,i,j,k;
int a[10];
for(k=0;k<10;k++)
{
if(k==0)a[k]=1;
else a[k]=a[k-1]*k;
}
scanf("%d",&n);
for(i=0;i<n;i++)
{
for(j=0;j<=i;j++)
{
printf("%d",a[i]/(a[j]*a[i-j]));
if(j!=i)printf(" ");
}
printf("\n");
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator