版本比较
ABC442补题记录
正文
增加 5 行删除 5 行
113 行未改动全部展开1141151161171181181191201211224 行未改动12712812913013113113213313413533 行未改动16917017117217317317417517617717817918017918018118218318410 行未改动113 行未改动全部展开 if(p[i].x == 0 || p[i].y == 0) { if(p[i].x == 0) p[i].y = 1 * (p[i].y > 0 ? 1 : -1); if(p[i].y == 0) p[i].x = 1 * (p[i].x > 0 ? 1 : -1); continue; } } LL a = gcd(abs(p[i].x), abs(p[i].y)); p[i].x /= a, p[i].y /= a; } sort(p + 1, p + 1 + n);4 行未改动 for(r = l; r <= n; r ++) { tmp1 = {p[r].x, p[r].y}; if(tmp != tmp1) break; } for(int i = l; i < r; i ++) for(int i = l; i < r; i ++) posl[p[i].id] = l, posr[p[i].id] = r - 1; l = r; } while(m --) {33 行未改动int main() { ios :: sync_with_stdio(false); cin.tie(0), cout.tie(0); cin >> n; for(int i = 1; i <= n; i ++) for(int i = 1; i <= n; i ++) for(int j = 1; j <= n; j ++) { char c; cin >> c; if(c == '.') S[i][j] ++; } for(int i = 1; i <= n; i ++) for(int j = 1; j <= n; j ++) for(int i = 1; i <= n; i ++) for(int j = 1; j <= n; j ++) S[i][j] += S[i - 1][j]; for(int j = 1; j <= n; j ++) { int mn = 1e9; for(int i = n; i >= 0; i --) {10 行未改动