1 | if (N >= 2) |
2 | for (int c0 = 1; c0 < O; c0 += 1) { |
3 | for (int c3 = 1; c3 <= M; c3 += 1) |
4 | S1(c0, 1, c3); |
5 | for (int c3 = 1; c3 < M; c3 += 1) { |
6 | S6(c0, 1, c3); |
7 | S7(c0, 1, c3); |
8 | } |
9 | if (N >= 3) { |
10 | for (int c3 = 1; c3 <= M; c3 += 1) |
11 | S3(c0, 1, c3); |
12 | for (int c3 = 1; c3 <= M; c3 += 1) |
13 | S1(c0, 2, c3); |
14 | for (int c3 = 1; c3 < M; c3 += 1) { |
15 | S6(c0, 2, c3); |
16 | S7(c0, 2, c3); |
17 | } |
18 | for (int c3 = 1; c3 < M; c3 += 1) |
19 | S11(c0, 1, c3); |
20 | } else { |
21 | for (int c3 = 1; c3 <= M; c3 += 1) |
22 | S3(c0, 1, c3); |
23 | for (int c3 = 1; c3 < M; c3 += 1) |
24 | S11(c0, 1, c3); |
25 | } |
26 | for (int c1 = 3; c1 < 2 * N - 4; c1 += 2) { |
27 | for (int c3 = 1; c3 < M; c3 += 1) |
28 | S10(c0, (c1 - 1) / 2, c3); |
29 | for (int c3 = 1; c3 <= M; c3 += 1) |
30 | S3(c0, (c1 + 1) / 2, c3); |
31 | for (int c3 = 1; c3 <= M; c3 += 1) |
32 | S1(c0, (c1 + 3) / 2, c3); |
33 | for (int c3 = 1; c3 < M; c3 += 1) { |
34 | S6(c0, (c1 + 3) / 2, c3); |
35 | S7(c0, (c1 + 3) / 2, c3); |
36 | } |
37 | for (int c3 = 1; c3 < M; c3 += 1) |
38 | S11(c0, (c1 + 1) / 2, c3); |
39 | } |
40 | if (N >= 3) { |
41 | for (int c3 = 1; c3 < M; c3 += 1) |
42 | S10(c0, N - 2, c3); |
43 | for (int c3 = 1; c3 <= M; c3 += 1) |
44 | S3(c0, N - 1, c3); |
45 | for (int c3 = 1; c3 < M; c3 += 1) |
46 | S11(c0, N - 1, c3); |
47 | } |
48 | for (int c3 = 1; c3 < M; c3 += 1) |
49 | S10(c0, N - 1, c3); |
50 | } |
51 | for (int c0 = 1; c0 < O; c0 += 1) |
52 | for (int c1 = 1; c1 < N; c1 += 1) { |
53 | for (int c3 = 1; c3 <= M; c3 += 1) |
54 | S2(c0, c1, c3); |
55 | for (int c3 = 1; c3 < M; c3 += 1) |
56 | S8(c0, c1, c3); |
57 | for (int c3 = 1; c3 < M; c3 += 1) |
58 | S9(c0, c1, c3); |
59 | } |
60 | for (int c0 = 1; c0 < O; c0 += 1) |
61 | for (int c1 = 1; c1 < N; c1 += 1) |
62 | for (int c2 = 1; c2 < M; c2 += 1) |
63 | S4(c0, c1, c2); |
64 | for (int c0 = 1; c0 < O; c0 += 1) |
65 | for (int c1 = 1; c1 < N; c1 += 1) |
66 | for (int c2 = 1; c2 < M; c2 += 1) |
67 | S5(c0, c1, c2); |
68 | for (int c0 = R; c0 < O; c0 += 1) |
69 | for (int c1 = Q; c1 < N; c1 += 1) |
70 | for (int c2 = P; c2 < M; c2 += 1) |
71 | S12(c0, c1, c2); |
72 | for (int c0 = R; c0 < O; c0 += 1) |
73 | for (int c1 = Q; c1 < N; c1 += 1) |
74 | for (int c2 = 1; c2 < M; c2 += 1) |
75 | S13(c0, c1, c2); |
76 | for (int c0 = R; c0 < O; c0 += 1) |
77 | for (int c1 = 1; c1 < N; c1 += 1) |
78 | for (int c2 = P; c2 < M; c2 += 1) |
79 | S14(c0, c1, c2); |
80 | for (int c0 = R; c0 < O; c0 += 1) |
81 | for (int c1 = 1; c1 < N; c1 += 1) |
82 | for (int c2 = 1; c2 < M; c2 += 1) |
83 | S15(c0, c1, c2); |
84 | |