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:大家看一下咯!帮帮忙看哪儿出问题了 和楼下贴的应该一样呀 在线等待!!!!In Reply To:大家看一下咯!帮帮忙看哪儿出问题了 和楼下贴的应该一样呀 在线等待!!!! Posted by:yunhong at 2008-07-16 22:13:37 我也是莫名其妙的的错了,咱俩的差不多 这个事我的 #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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator