c4, u, x, y, r;
int h1, h2, h3, i, j, g; UG [6] [10], CG [6] [16]; = 24; = 19;
c = 5 * n-k +5; = n/4; = h-1; = c + n/2; [2] [0] = 2 * n +1; [3 ] [0] = 2 * n +2;
for (j = 1; j
{
UG [2] [j] = h2 +2 * j-2; [3] [j] = h2 +2 * j-1;
}
h3 = c +4; = h3-h; [2] [h1] = 2 * n + g+ 1; [3] [h1] = 2 * n + g+ 2;
for (j = h; j
{
UG [2] [j] = h4 +2 * j-2; [3] [j] = h4 +2 * j-1;
}
h3 = c +6; [2] [g-1] = 2 * n +3; [3] g-1] = 2 * n +4; [2] [h1] = h3; [3] [h1] = h3 +1; = c3 +2 * g; = (3-y)/2-h;
h3 = x + g-1 + h2 + u/2; (j = 0; j
{
CG [4] [j] = c4 +2 * j; [5] [j] = c4 +2 * j +1; [0] [j] = CG [4] [j -1];
CG [1] [j] = CG [5] [j-1];
}
CG [4] [h3-1] = c4 +2 * h3-1; [5] [h3-1] = c4 +2 * h3-2; (i = 0; i < 4; i + +) [i] [0] = c3 + i; (j = 1; j
{[2] [j] = UG [2] [j-1] +2; [3] [j] = UG [3] [j-1] +2;
} (i = 0; i <4; i + +) [i] [g-1] = c2 + i, (j = g; j
{[2] [j] = UG [2] [j-1] +2; [3] [j] = UG [3] [j-1] +2;
} (y = 1)
{[2] [j] = c2-1; [3] [j] = 0; (i = 0; i <4; i + +) [i] [g-1] = c2 + i, (j = h3-u +1; j
{[2] [j] = CG [2] [j-1] +2; [3] [j] = CG [3] [j-1] +2;
} ((nk)% 2) [3] [h3-2] = 0; = h3-u-1; [2] [g-2] + = 1; [3] [ g-2] - = 1; [2] h2] = CG [4] [g-2]; [3] h2] = CG [5] [g-2]; [2] h-1] = CG [ 4] [h2]; [3] h-1] = CG [5] [h2]; (i = 0; i <3; i + +) (i = 0; i <6; i + +)
{
cout <<" n";
for (j = 0; j
cout <<"" <
} (i = 0; i <6; i + +)
{
cout <<" n";
for (j = 0; j
cout <<"" <
}
}
В
В