1
0
Fork 0

Update template.cc

Signed-off-by: subcrip <contact@subc.rip>
This commit is contained in:
subcrip 2024-11-27 08:36:52 +00:00
parent f7205eb816
commit 8fdd3c413f
1 changed files with 5 additions and 5 deletions

View File

@ -376,11 +376,11 @@ template <ll mdl> struct MLL {
friend MLL operator%(const MLL& lhs, const MLL& rhs) { return mod(lhs.val - (lhs / rhs).val, mdl); }
friend bool operator==(const MLL& lhs, const MLL& rhs) { return lhs.val == rhs.val; }
friend bool operator!=(const MLL& lhs, const MLL& rhs) { return lhs.val != rhs.val; }
void operator+=(const MLL& rhs) { return *this = *this + rhs; }
void operator-=(const MLL& rhs) { return *this = *this - rhs; }
void operator*=(const MLL& rhs) { return *this = *this * rhs; }
void operator/=(const MLL& rhs) { return *this = *this / rhs; }
void operator%=(const MLL& rhs) { return *this = *this % rhs; }
MLL& operator+=(const MLL& rhs) { return *this = *this + rhs; }
MLL& operator-=(const MLL& rhs) { return *this = *this - rhs; }
MLL& operator*=(const MLL& rhs) { return *this = *this * rhs; }
MLL& operator/=(const MLL& rhs) { return *this = *this / rhs; }
MLL& operator%=(const MLL& rhs) { return *this = *this % rhs; }
};
template <ll mdl>