1
0
Fork 0

Update number/mll.cc

This commit is contained in:
subcrip 2024-04-10 12:25:35 +08:00
parent b472cd12b0
commit 4a682bd607
1 changed files with 10 additions and 0 deletions

View File

@ -14,3 +14,13 @@ template <ll mdl> struct MLL {
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; }
}; };
template <ll mdl>
ostream& operator<<(ostream& out, const MLL<mdl>& num) {
return out << num.val;
}
template <ll mdl>
istream& operator>>(istream& in, MLL<mdl>& num) {
return in >> num.val;
}