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,19 +1,19 @@
#include <bits/stdc++.h>
using namespace std;
int binary_multiplication(int a , int b,int M=(int)1e9+7){
int res = 0;
while( b ){
if( b&1 ) res += a , res %= M;
a = 2 * a ; a %= M:
b >>= 1;
}
return res;
}
int main(){
return 0;
}
#include <bits/stdc++.h>
using namespace std;
int binary_multiplication(int a , int b,int M=(int)1e9+7){
int res = 0;
while( b ){
if( b&1 ) res += a , res %= M;
a = 2 * a ; a %= M:
b >>= 1;
}
return res;
}
int main(){
return 0;
}