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 |
Why OLE跪求#include<iostream> using namespace std; int main() { int m,n,d,i,j,t,h; __int64 an; while(1) { cin>>m>>n; if(m==0&&n==0) break; d=m+n; t=h=m<n?m:n; an=1; for(i=0;i<t;i++) { an=an*(d-i); if(h>0&&an%h==0) { an=an/h; h--; } } printf("%I64d\n",an); } } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator