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 |
Re:终结 100 道 飘过 贴码In Reply To:终结 100 道 飘过 贴码 Posted by:qingtang90 at 2010-08-04 09:03:18 > #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