正文
增加 5 行删除 5 行
88 行未改动89909192939495969751 行未改动1491501511521531541551561573 行未改动1611621631641651661671681691701711726 行未改动17918018118218318418518618719 行未改动88 行未改动u32 n, m;vector<vu> a;Mat(u32 _n = 100, u32 _m = 100): n(_n), m(_m), a(n, vu(m)) {}vu &operator[](u32 i) { return a[i]; }const vu &operator[](u32 i) const { return a[i]; }void setI() {51 行未改动Mat parseExpr(u32 id) {Mat res; res.setI();res[id][id] = 0;string exprStr; getline(cin, exprStr);stringstream exprStream(exprStr);for (;;) switch (auto curToken = nextToken(exprStream); curToken.type) {3 行未改动case NUMBER:res[id][0] += curToken.val;break;case EOL:return res;default: break;}assert(false);return res;6 行未改动case IDENTIFIER:res = parseExpr(curToken.val) * res;break;case LOOP_END:return res;case NUMBER: // A number at the beginning of a line -> Lexically a loop.res = (parseLoop() ^ curToken.val) * res;19 行未改动88 行未改动89909192939495969751 行未改动1491501511521531541551561573 行未改动1611621631641651661671681691701711726 行未改动17918018118218318418518618719 行未改动88 行未改动u32 n, m;vector<vu> a;Mat(u32 _n = 100, u32 _m = 100): n(_n), m(_m), a(n, vu(m)) {}vu &operator[](u32 i) { return a[i]; }const vu &operator[](u32 i) const { return a[i]; }void setI() {51 行未改动Mat parseExpr(u32 id) {Mat res; res.setI();res[id][id] = 0;string exprStr; getline(cin, exprStr);stringstream exprStream(exprStr);for (;;) switch (auto curToken = nextToken(exprStream); curToken.type) {3 行未改动case NUMBER:res[id][0] += curToken.val;break;case EOL:return res;default: break;}assert(false);return res;6 行未改动case IDENTIFIER:res = parseExpr(curToken.val) * res;break;case LOOP_END:return res;case NUMBER: // A number at the beginning of a line -> Lexically a loop.res = (parseLoop() ^ curToken.val) * res;19 行未改动