| ||||||||||
| 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 | |||||||||
无语的一个下午。。。 13行,贴代码#include<stdio.h>
int main()
{
int n,m,i;
while(scanf("%d%d",&n,&m) && (n || m))
{
double c=1.0;
for(i=n;i>n-m;i--) c*=i;
for(i=m;i>1;i--) c/=i;
printf("%d things taken %d at a time is %.0lf exactly.\n",n,m,c);
}
return 0;
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator