| ||||||||||
| 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 | |||||||||
为什么总是超时?好诡异!那位COW帮忙看看#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
__int64 n,m,ans,i,j;
while((scanf("%I64d%I64d",&n,&m)) && !(n==0 && m==0)){
ans=1;
for(i=n+m,j=1;i>=m+1;j++,i--)
ans=ans*i/j;
printf("%I64d\n",ans);
}
return 0;
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator