Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

哪位大哥帮帮忙,为什么提交不上去啊!!在自己的的机子可以运行啊!

Posted by wangxi114 at 2004-11-15 21:18:10 on Problem 1653
#include<stdio.h>
#include <math.h>

void main(){
int i,j,n,a[100][100];
  scanf("%d",&n);
   for(i=1;i<=n;i++)
   {a[i][i]=1;
   a[i][1]=1;
   }
   for(i=3;i<=n;i++)
	   for(j=2;j<=i-1;j++)
		   a[i][j]=a[i-1][j-1]+a[i-1][j];
	   for(i=1;i<=n;i++)
	   {for(j=1;j<=i;j++)
	        printf("%5d",a[i][j]);
	   printf("\n");
	   }
	   
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator