Binomial Coefficient

This commit is contained in:
Hizenberg
2024-04-10 15:36:18 +05:30
parent 6ddf41feb5
commit bc8374182f
21 changed files with 810 additions and 769 deletions

View File

@@ -1,4 +1,4 @@
template<typename T>
T modAdd(T a,T b,T M=(T)1e9+7){
return ((M+a%M)%M+(M+b%M)%M)%M;
}
template<typename T>
T modAdd(T a,T b,T M=(T)1e9+7){
return ((M+a%M)%M+(M+b%M)%M)%M;
}