1
0
Fork 0

Update number/mll.cc

This commit is contained in:
subcrip 2024-04-10 12:25:14 +08:00
parent 58b2fc92fc
commit b472cd12b0
1 changed files with 1 additions and 1 deletions

View File

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