mirror of
https://github.com/Hizenberg469/Algorithms-snippets.git
synced 2026-04-20 07:02:23 +03:00
4 lines
94 B
C++
4 lines
94 B
C++
template<typename T>
|
|
T modSub(T a,T b,T M=(T)1e9+7){
|
|
return (M+((M+a%M)%M-(M+b%M)%M))%M;
|
|
} |