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 |
终结 100 道 飘过 贴码#include <stdio.h> int main(int argc, char *argv[]) { long long i,j,k; double m,n,sum,num,x,y,z,max; while(1) { scanf("%lf %lf",&m,&n); if(m==0&&n==0) break; z=1; if(m!=0&&n!=0) { max=m>n?m:n; for(i=max+1;i<=m+n;i++) { z=z*i/(i-max); } } printf("%.0lf\n",z); } return 0; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator