版本比较
ZROJ3318 划分
正文
增加 7 行删除 7 行
187 行未改动全部展开1881891901911921921931941941951961961971981992008 行未改动2092102112122132132142152162172172182192202212222232242252252262272282293 行未改动23323423523623723723823924024117 行未改动187 行未改动全部展开 cout << '\n'; }}
const int X[] = {0, 1, 0, 2, 1, 0, 3, 1, 4, 3, 1, 4, 3, 2, 4, 3, 5, 4, const int X[] = {0, 1, 0, 2, 1, 0, 3, 1, 4, 3, 1, 4, 3, 2, 4, 3, 5, 4, 6, 6, 6, 6, 5, 2, 7, 7, 7, 7, 5, 8, 8, 8, 8, 2, 5};const int Y[] = {0, 1, 2, 1, 3, 1, 0, 1, 2, 0, 3, 4, 5, 4, 2, 4, 3, 4, const int Y[] = {0, 1, 2, 1, 3, 1, 0, 1, 2, 0, 3, 4, 5, 4, 2, 4, 3, 4, 5, 6, 2, 6, 3, 6, 5, 6, 7, 7, 7, 7, 5};const int Z[] = {0, 1, 2, 3, 2, 4, 2, 3, 2, 1, 0, 3, 4, 0, 5, 3, 5, 1, const int Z[] = {0, 1, 2, 3, 2, 4, 2, 3, 2, 1, 0, 3, 4, 0, 5, 3, 5, 1, 5, 4, 5, 6, 6, 6, 6, 1, 4};void outC() { for (auto [x, y] : C) { printf("( %d , %d )", x, y);8 行未改动 } else if (a == 1) { copy(Y, Y + 31, bel.begin()); c = 8, norm(31, 4 * n + 2); } else if (a == n - 1) { int st = 4 * n - 31; int st = 4 * n - 31; c = 1, norm(1, st - 1); for (int i = 1; i <= 34; i++) bel[st + i - 1] = c - 1 + X[35 - i]; } else if (a == n - 2) { int st = 4 * n - 27; int st = 4 * n - 27; c = 1, norm(1, st - 1); for (int i = 1; i <= 30; i++) bel[st + i - 1] = c - 1 + Y[31 - i]; } else if (a == n - 3) { int st = 4 * n - 23; c = 1, norm(1, st - 1); for (int i = 1; i <= 26; i++) bel[st + i - 1] = c - 1 + Z[27 - i]; } else { int st = 4 * a - 7; int st = 4 * a - 7; c = 1, norm(1, st - 1); for (int i = 1; i <= 26; i++) bel[st + i - 1] = c - 1 + Z[i]; c += 6, norm(st + 26, 4 * n + 2); }3 行未改动 } cout << '\n'; }}
void _main() { cin >> n; if (n == 6 || n == 7 || n == 8) return bf(), void(); A.clear(), B.clear(), C.clear();17 行未改动