1
0
Fork 0
This commit is contained in:
subcrip 2024-04-01 22:49:41 +08:00
parent 982cac633a
commit 75293c3446
Signed by: subcrip
SSH Key Fingerprint: SHA256:dFPFi68d8C87YkFkEBU4TkcrYRySWpekRR1hbnDWUCw
1 changed files with 10 additions and 0 deletions

View File

@ -12,3 +12,13 @@ template <ll mdl> struct MLL {
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;
}