Search found 1 match

by Marat Usupov
Fri Feb 08, 2013 3:57 pm
Forum: Volume 3 (300-399)
Topic: 369 - Combinations
Replies: 101
Views: 34177

Re: 369 / 530 : Combinations : WAs all the way,Please Help

Hi! I can understand why I am getting wrong answer in this. Problem no. 369
#include <iostream>

using namespace std;

#define i64 unsigned long long int

i64 dp[100][100];

i64 nCr(int n, int r)
{
if(r==n) return dp[n][r] = 1;
else if(r==0) return dp[n][r] = 1;
else if(r==1) return dp[n][r ...

Go to advanced search