From b472cd12b04df1f4c138a9825ad30779d1d98625 Mon Sep 17 00:00:00 2001 From: subcrip Date: Wed, 10 Apr 2024 12:25:14 +0800 Subject: [PATCH] Update number/mll.cc --- number/mll.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/number/mll.cc b/number/mll.cc index c7dafea..104d7db 100644 --- a/number/mll.cc +++ b/number/mll.cc @@ -7,10 +7,10 @@ template 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; } }; -