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 wguox at 2009-04-03 22:37:41 on Problem 1942
#include<iostream>
using namespace std;
int main()
{
	__int64 sum1,i,k,sum,l,a[10000],m,n;
	for(l=0;m!=0&&n!=0;l++)
	{
		sum=1;sum1=1;k=0;
		scanf("%I64d%I64d",&m,&n);
	    for(i=m+n;k<n;i--,k++)
		    sum*=i;
	    for(i=n;i>=1;i--)
		    sum1*=i;
		a[l]=sum/sum1;
	}
	for(i=0;i<l-1;i++)
		printf("%I64d\n",a[i]);
	return 0;
}
谢了

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