diff --git a/number/mll.cc b/number/mll.cc index c9b0920..7dc80f6 100644 --- a/number/mll.cc +++ b/number/mll.cc @@ -1,6 +1,7 @@ template struct MLL { ll val; MLL(ll v = 0) : val(mod(v, mdl)) {} + MLL(const MLL& other) : val(other.val) {} 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 - rhs.val, mdl); } friend MLL operator*(const MLL& lhs, const MLL& rhs) { return mod(lhs.val * rhs.val, mdl); }