11 for (int i=1; i<=MAX; i++) {
12 for (int j=1; j<=MAX; j++) {
14 for (int k=1; k<i; k++)
15 if ((k != 1 && i-k != 1) || j != 1)
16 f[nim[k][j] ^ nim[i-k][j]] = 1;
17 for (int k=1; k<j; k++)
18 if (i != 1 || (k != 1 && j-k != 1))
19 f[nim[i][k] ^ nim[i][j-k]] = 1;
24 //printf("%d %d -> %d\n", i, j, z);