1 for (int c0 = 0; c0 <= 8; c0 += 1) {
2   for (int c1 = 0; c1 <= -c0 + 8; c1 += 1)
3     for (int c2 = 10 * c0; c2 <= 10 * c0 + 9; c2 += 1) {
4       A(c2, 10 * c1);
5       A(c2, 10 * c1 + 1);
6       A(c2, 10 * c1 + 2);
7       A(c2, 10 * c1 + 3);
8       A(c2, 10 * c1 + 4);
9       A(c2, 10 * c1 + 5);
10       A(c2, 10 * c1 + 6);
11       A(c2, 10 * c1 + 7);
12       A(c2, 10 * c1 + 8);
13       A(c2, 10 * c1 + 9);
14     }
15   for (int c1 = -c0 + 9; c1 <= -c0 + 10; c1 += 1)
16     for (int c2 = 10 * c0; c2 <= min(10 * c0 + 9, -10 * c1 + 100); c2 += 1)
17       for (int c3 = 10 * c1; c3 <= min(10 * c1 + 9, -c2 + 100); c3 += 1)
18         A(c2, c3);
19 }
20 for (int c0 = 9; c0 <= 10; c0 += 1)
21   for (int c1 = 0; c1 <= -c0 + 10; c1 += 1)
22     for (int c2 = 10 * c0; c2 <= min(10 * c0 + 9, -10 * c1 + 100); c2 += 1)
23       for (int c3 = 10 * c1; c3 <= min(10 * c1 + 9, -c2 + 100); c3 += 1)
24         A(c2, c3);
25