Update template.cc
Signed-off-by: subcrip <contact@subc.rip>
This commit is contained in:
parent
f7205eb816
commit
8fdd3c413f
10
template.cc
10
template.cc
|
@ -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 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; }
|
||||||
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; }
|
MLL& 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; }
|
||||||
void operator*=(const MLL& rhs) { return *this = *this * rhs; }
|
MLL& 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; }
|
||||||
void operator%=(const MLL& rhs) { return *this = *this % rhs; }
|
MLL& operator%=(const MLL& rhs) { return *this = *this % rhs; }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <ll mdl>
|
template <ll mdl>
|
||||||
|
|
Loading…
Reference in New Issue