| 19 | modint<MOD> inv() const { return pow(MOD - 2); } // MOD must be a prime |
| 20 | inline modint<MOD> operator / (modint<MOD> other) const { return *this * other.inv(); } |
| 21 | inline modint<MOD> operator /= (modint<MOD> other) { return *this *= other.inv(); } |
| 22 | inline bool operator == (modint<MOD> other) const { return value == other.value; } |
| 23 | inline bool operator != (modint<MOD> other) const { return value != other.value; } |
| 24 | inline bool operator < (modint<MOD> other) const { return value < other.value; } |