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:无语的一个下午。。。 13行,贴代码

Posted by 2012xie at 2012-11-02 21:03:49 on Problem 1306
In Reply To:无语的一个下午。。。 13行,贴代码 Posted by:569262726 at 2012-05-26 17:22:10
> #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:
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