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:大家看一下咯!帮帮忙看哪儿出问题了 和楼下贴的应该一样呀 在线等待!!!!

Posted by 981950112 at 2010-02-19 18:25:20 on Problem 1942
In Reply To:Re:大家看一下咯!帮帮忙看哪儿出问题了 和楼下贴的应该一样呀 在线等待!!!! Posted by:Greepry at 2008-11-01 14:09:06
> 我也是莫名其妙的的错了,咱俩的差不多
> 这个事我的
> #include <iostream>
> using namespace std;
> int main()
> {
> 	unsigned int m,n,q;
> 	double a,b,i;
> 	double p;
> 	cin >> m>> n;
> 	while(m!=0||n!=0)
> 	{
> 		a=m>n?m:n;
> 		b=m<n?m:n;
> 		p=1;
> 		for(i=a+b;i>a;i--) p*=i/(i-a);
> 		q=p;
> 		cout <<q<<endl;
> 		cin>>m>>n;
> 	}
> 	system("pause");
> }

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