trying to solve this question
https://codeforces.com/group/MWSDmqGsZm/contest/223339/problem/T
but i keep failing on test 32
used the website at the bottom of the page to get the recursive formula
c(n, r) = c(n-1, r-1) + c(n-1, r)
not sure if the problem comes from the formula or im doing smt else wrong
#include <iostream>
using ll = long long;
ll c(ll n, int r){
if(n == r || r == 0) return 1;
return c(n-1, r-1) + c(n-1, r);
}
int main(){
ll n; int r;
std::cin>>n>>r;
std::cout<<c(n,r);
}