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<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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator