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> #define max 60 void main() { int n,k,i,a,b; int c[max]; scanf("%d",&n); c[1]=1; for(k=1;k<=n;k++) { c[k+1]=1; b=0; for(i=1;i<=k;i++) { printf("%-4d ",c[i]); a=c[i]; c[i]=b+c[i]; b=a; } printf("\n"); } } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator