From 3c19859012e8588d19d4fd6ed7c072d5c8ed16de Mon Sep 17 00:00:00 2001 From: subcrip Date: Wed, 10 Apr 2024 12:50:26 +0800 Subject: [PATCH] Update number/mll.cc --- number/mll.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/number/mll.cc b/number/mll.cc index 9b307e7..c9b0920 100644 --- a/number/mll.cc +++ b/number/mll.cc @@ -6,8 +6,8 @@ template struct MLL { friend MLL operator*(const MLL& lhs, const MLL& rhs) { return mod(lhs.val * rhs.val, mdl); } 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; } + 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) { val = (*this + rhs).val; } void operator-=(const MLL& rhs) { val = (*this - rhs).val; } void operator*=(const MLL& rhs) { val = (*this * rhs).val; } @@ -23,4 +23,4 @@ ostream& operator<<(ostream& out, const MLL& num) { template istream& operator>>(istream& in, MLL& num) { return in >> num.val; -} \ No newline at end of file +}