版本比较
题解:P14428 [JOISC 2014] 二人的星座 / Constellation 2
正文
增加 1 行删除 1 行
48 行未改动4950515253535455565748 行未改动 if(a[i].c == 0) res *= (tot[1] - cnt[1]) * (tot[2] - cnt[2]); else if(a[i].c == 1) res *= (tot[0] - cnt[0]) * (tot[2] - cnt[2]); else res *= (tot[0] - cnt[0]) * (tot[1] - cnt[1]); ans += res, cnt[a[i].c]++, cnt[b[j].c]--; } } } Write(ans / 4);}```