intさわだんのBlack History

刹那的レジェンドになりたい。

2014-10-20から1日間の記事一覧

poj スランプ

POJ

POJスランプに陥ったPOJ2027 poj1003 poj1942 poj2665 poj2196

POJ1942

POJ

つまり (a+b)!/a!b!するだけ #include <cstdio> #include <utility> using namespace std; int main(){ while(1){ long long int a,b,ans; scanf("%lld%lld",&a,&b); if(a == 0 && b == 0)break; if(b>a)swap(a,b); ans = 1; for(long long int i = a+b;i > a;i--){ ans *= i;</utility></cstdio>…