版本比较
题解:P15375 Soso 的模法矩阵 / modmat
正文
增加 3 行删除 3 行
60 行未改动61626364656665666768697031 行未改动10210310410510610610710810911018 行未改动60 行未改动 } modint operator+() const { return *this; } modint operator-() const { return modint() - *this; } friend int raw(const modint &self) { return self.v; } friend ostream& operator<<(ostream& os, const modint &self) { return os << raw(self); friend ostream& operator<<(ostream& os, const modint &self) { return os << raw(self); } modint &operator+=(const modint &rhs) { v += rhs.v; if (v >= umod) v -= umod;31 行未改动int n, m, a[5010], b[5010];LL c[5010];int main() {#ifndef LOCAL cin.tie(nullptr)->sync_with_stdio(false); cin.tie(nullptr)->sync_with_stdio(false);#endif cin >> m >> n; for (int j = 1; j <= m; j++) cin >> b[j]; for (int i = 1; i <= n; i++) cin >> a[i];18 行未改动