From 48dbc55a095d4efe8974c0635d499e98b357bb18 Mon Sep 17 00:00:00 2001 From: subcrip Date: Thu, 25 Apr 2024 19:21:33 +0800 Subject: [PATCH] Update number/mll.cc Signed-off-by: subcrip --- number/mll.cc | 1 + 1 file changed, 1 insertion(+) 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); }