版本比较
[题解] [ARC105F] Lights Out on Connected Graph
正文
增加 1 行删除 1 行
33 行未改动3435363738394041429 行未改动33 行未改动mat[u][v] = mat[v][u] = 1;for (s = 0; s < S; ++s) if (((s >> u) & 1) && ((s >> v) & 1))++cnt[s]; // 点集 s 的边数和}for (s = 0; s < S; ++s) {g[s] = 1; // 全白点for (int t = s; t; (--t) &= s)(g[s] += pw[cnt[s] - cnt[t] - cnt[s ^ t]]) %= P;9 行未改动33 行未改动3435363738394041429 行未改动33 行未改动mat[u][v] = mat[v][u] = 1;for (s = 0; s < S; ++s) if (((s >> u) & 1) && ((s >> v) & 1))++cnt[s]; // 点集 s 的边数和}for (s = 0; s < S; ++s) {g[s] = 1; // 全白点for (int t = s; t; (--t) &= s)(g[s] += pw[cnt[s] - cnt[t] - cnt[s ^ t]]) %= P;9 行未改动