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

Re:终结 100 道 飘过 贴码

Posted by zysaaa at 2010-11-25 14:08:44 on Problem 1942
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:
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