mirror of
https://github.com/Hizenberg469/Algorithms-snippets.git
synced 2026-04-19 22:52:23 +03:00
4 lines
81 B
C++
4 lines
81 B
C++
template<typename T>
|
|
T modMul(T a,T b,T M=(int)1e9+7){
|
|
return ((a%M)*(b%M))%M;
|
|
} |